rehookify / datepicker

The ultimate tiny tool for creating date and range pickers in your React applications.
https://rehookify.com/datepicker
MIT License
301 stars 22 forks source link

Problem with maxDate and month view #38

Closed fweinaug closed 1 year ago

fweinaug commented 1 year ago

When I set a maxDate and try to navigate to the month of the maxDate in the month view the button to go to next date gets disabled on the month before. In the year view the month is enabled and after clicking on it, the navigation in the month view works as expected.

I created an example here: https://codesandbox.io/p/sandbox/rehookify-all-in-one-month-calendar-forked-cdppw3?file=/src/app.tsx:37,37

Version: 6.1

Feshchenko commented 1 year ago

@fweinaug hey, thanks for the issue. Sorry for the long response and fix. It should be fine in the 6.2.0

alizadeh118 commented 11 months ago

Hey @Feshchenko,

It appears the problem still exists in version 6.2.0 but not in this example (version 6.0.1).

Here is the link to the sandbox.

Thank you in advance.

maxDate-issue