flowbite-react icon indicating copy to clipboard operation
flowbite-react copied to clipboard

bug: date immediately prior to `minDate` in Datepicker still selectable / maxDate not selectable

Open tylernisonoff opened this issue 1 year ago • 2 comments

  • [x] I have searched the Issues to see if this bug has already been reported
  • [x] I have tested the latest version

Steps to reproduce

  1. Go to datepicker "Limit the date" example on website
  2. Example tries to limit minDate to 2023-01-01

Current behavior

If you scroll back to 2022-12-31, its still available. There seems to be an "off-by-one" where the previous date of the minDate is still available for selection.

Similarly, the maxDate is not available, even though this is meant to be inclusive

Expected behavior

2022-12-31 to be disabled.

tylernisonoff avatar Feb 15 '24 00:02 tylernisonoff