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
This may not technically be a bug, but it is inconsistent and non-intuitive. The minDate and maxDate options to the datepicker component behave differently.
With the config above setting a mindate of 04/04/2025 and a maxDate of 21/4/2025
4/4/2025 will be disabled and non-selectable
20/4/2025 will be available for selection
It appears from the code in the component that the intention was for the minDate to be exclusive (as it uses < not <=) however a weird quirk of date comparison appears to be causing it to treat the provided minDate as excluded.
This would be a breaking change to fix
The text was updated successfully, but these errors were encountered:
This PR makes minDate behaviour match maxDate, and allows the date provided in the option to be
selected.
BREAKING CHANGE: The date provided to the component via the minDate option is now selectable by
users. If you are using the mindate functionality, you will need to adjust the dates you pass into
the component to ensure the correct dates are included/excluded.
fix#923
This may not technically be a bug, but it is inconsistent and non-intuitive. The
minDate
andmaxDate
options to the datepicker component behave differently.With the config above setting a mindate of
04/04/2025
and a maxDate of21/4/2025
It appears from the code in the component that the intention was for the
minDate
to be exclusive (as it uses<
not<=
) however a weird quirk of date comparison appears to be causing it to treat the provided minDate as excluded.This would be a breaking change to fix
The text was updated successfully, but these errors were encountered: