-
-
Notifications
You must be signed in to change notification settings - Fork 202
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Before you start - checklist
- I followed instructions in documentation written for my React-Date-Picker version
- I have checked if this bug is not already reported
Description
When using the library and I change the date value from external action, the value shown in the text box updates correctly. But the calendar that pops up is still on the old year and month.
I have a basic example setup in the below codesandbox
https://codesandbox.io/s/react-date-picker-xxsgjk
Steps to reproduce
Steps to reproduce using the below codesandbox
- Open the calendar and choose a date from previous year (June 1st, 2023)
- Click the button to reset the date
- Verify date is set to Jan 1st, 2024
- Click on the calendar icon and the calendar still shows the old June month from 2023 while expectation is the it should open Jan 2024.
Expected behavior
The calendar should open to the same month and year as displayed in the text box
Actual behavior
The calendar opens to the previously selected month and year that was set by actually clicking on the calendar
Additional information
No response
Environment
- Browser (if applicable): ALL
- React-Date-Picker version: ALL
- React version: ALL
grovesNL and filipedanunes
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working