Calendar: showMinMaxRange - cannot access the month that contains the minDate #4520
Labels
Resolution: Duplicate
Issue has already been reported or a pull request related to same issue has already been submitted
Milestone
Describe the bug
When setting showMinMaxRange property on the calendar component, the month that contains the minDate cannot be accessed as the previous arrow button is disabled in the month after.
For example if your minDate was "2023-04-16" (16th April 2023), the previous arrow is disabled in May 2023 so April cannot be accessed. The previous arrow should be disabled when in April 2023 and active in May 2023 to enable access.
Reproducer
https://stackblitz.com/edit/react-hwawjd-hdzdd5?file=src%2FApp.js
PrimeReact version
9.5.0
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Expect the month which contains the minDate to be accessible and the previous button to not be disabled in the month after
The text was updated successfully, but these errors were encountered: