flowbite-react
flowbite-react copied to clipboard
bug: date immediately prior to `minDate` in Datepicker still selectable / maxDate not selectable
- [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
- Go to datepicker "Limit the date" example on website
- 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.