react-calendar icon indicating copy to clipboard operation
react-calendar copied to clipboard

Focus after programmatically changing date range

Open Zat42 opened this issue 3 years ago • 1 comments

Using calendar with isRangeSelector to true, displayed month is not changed when date range is updated.

For example, if initial date range is 2023-01-01 to 2023-01-10, initial "focus" will be January 2023. If I programmatically change it to 2023-03-01 to 2023-03-10, the focus will still be on January 2023 instead of March 2023.

Is there a way to specify what should be the current focus or default focus after an update (start date, end date, ...) ?

Thanks

Zat42 avatar Feb 07 '23 13:02 Zat42

Hi @Zat42 thanks for reporting the issue. I will look into it this week.

tusharf5 avatar Feb 19 '23 18:02 tusharf5