react-multi-date-picker
react-multi-date-picker copied to clipboard
Issue with maxDate: Incorrect Behavior in [Specify Feature]
Bug: maxDate Prevents Selection but Doesn't Disable Date in UI
Description: In the DatePicker component, when setting today's date as maxDate, the UI does not visually disable the date. However, selecting the date does not trigger the onChange event, making it seem like a valid selection that doesn’t work as expected.
Steps to Reproduce:
-
Set maxDate to today's date.
-
Open the DatePicker.
-
Observe that today's date is not visually disabled.
-
Select today's date – it gets selected in the UI, but the onChange event does not trigger.
Expected Behavior: The maxDate should either:
Visually disable the date if it’s not meant to be selectable, or
Allow selection and correctly trigger the onChange event.