OMikkel / tailwind-datepicker-react

A tailwindcss/flowbite datepicker component built as a react component with types
https://omikkel.github.io/tailwind-datepicker-react/
MIT License
160 stars 70 forks source link

minDate and maxDate dont prevent navigating across disabled dates. #51

Open parmeet1099 opened 11 months ago

parmeet1099 commented 11 months ago

For eg. maxDate is set to 2nd Jan 2024. clicking on next() button, doesn't update the UI, i.e. the UI still shows Jan, 2024 calender but behind the hood, it navigates to furture months. so when i close and open it again it shows future disabled month, say something like May, 2024.

image image image image
MrKeon commented 10 months ago

I can confirm I have experienced this bug as well where clicking the Next/Prev button in the datepicker does not update the view, but when clicking outside of the datepicker, the date set correlates to the clicking of the Next/Prev button clicks

pmaidens commented 9 months ago

I have fixed this in #49. Hopefully it gets fixed soon.