You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed instructions in documentation written for my React-Date-Picker version
I have checked if this bug is not already reported
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:
4. I found another use case which can be seen on the online demo page. If you select a date from the picker and then you try to change it from the input, the value does not update. These type of things seem to happen when you first select or set a value for your date and then you try to update another prop or something.
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!
The text was updated successfully, but these errors were encountered:
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:
4. I found another use case which can be seen on the online demo page. If you select a date from the picker and then you try to change it from the input, the value does not update. These type of things seem to happen when you first select or set a value for your date and then you try to update another prop or something.
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!
The text was updated successfully, but these errors were encountered: