Open MarinaGhe opened 2 years ago
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
This issue was closed because it has been stalled for 14 days with no activity.
Before you start - checklist
Unexpected behaviour when passing minDate and maxDate through props. I'm passing minDate value through props inside my DatePicker component and I have some weird scenarios.
Expected behavior
The react date picker element/wrapper should always be clickable in order to open the calendar. The calendar screen shown after minDate is updated should be the one containing the minDate value or date value.
Actual behavior
If I have already selected a value in the DatePicker and the minDate props updates with another value, the calendar only opens when clicking on the icon or inside the input. The rest of the react date picker/wrapper element it's not clickable anymore.
If I have already selected a value in the DatePicker and the minDate props updates with another value greater than the date value, the input is updated with the minDate value and the click problem persists.
If I have already selected a value in the DatePicker and I open the calendar screen after minDate is updated, the dates displayed are not the ones containing minDate even if I update the date also.
EDIT:
Additional information
All the values in my state are updating accordingly. It's my first time using this component so maybe there is something I'm missing. I'm using react hooks v 17.0.2 and latest version of this module. Any info or help on this is very appreciated.
Thanks a lot!