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
Describe the bug
When a maxDate is set in the date picker, typing in certain future dates causes the picker to change to unexpected dates instead of the configured maxDate.
If the current date is between 01 and 09, i.e. 08/01/2024 -> 08/09/2024, update the day to 20 or 30 and press enter. For example, if the current date is 08/07/2024, update the value to read 08/20/2024 and press enter.
After pressing enter, the date will update to a date before the maxDate value, but not the maxDate. Using the previous example, the date updates to read 08/02/2024.
Another example is with the current date of 08/07/2024, updating the value to 09/30/2025 and pressing enter updates to read 08/03/2024.
Expected behavior
I would expect the date to read the maxDate if the given date is greater than the configured date.
Screenshots
Starting point:
Changed date before pressing enter:
Date after pressing enter:
Desktop (please complete the following information):
OS: Mac OS 14.1.1
Browser Chrome
Version 126.0.6478.62
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
I think currently if the date entered is greater than the maxDate, we'll restore it back to the previously selected date. I think that behaviour is okay.
Describe the bug
When a
maxDate
is set in the date picker, typing in certain future dates causes the picker to change to unexpected dates instead of the configuredmaxDate
.To Reproduce
Steps to reproduce the behavior:
maxDate
value, but not themaxDate
. Using the previous example, the date updates to read 08/02/2024.Expected behavior
I would expect the date to read the
maxDate
if the given date is greater than the configured date.Screenshots
Starting point:
Changed date before pressing enter:
Date after pressing enter:
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: