react-multi-date-picker icon indicating copy to clipboard operation
react-multi-date-picker copied to clipboard

Issue with maxDate: Incorrect Behavior in [Specify Feature]

Open KosarGhafarian opened this issue 7 months ago • 1 comments

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:

  1. Set maxDate to today's date.

  2. Open the DatePicker.

  3. Observe that today's date is not visually disabled.

  4. 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.

KosarGhafarian avatar Mar 12 '25 12:03 KosarGhafarian