-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar: shows future and/or past dates even when minDate and/or maxDate props are set #1661
Comments
Any progress on this issue? |
@fenes I can have a look at this issue this week and hopefully submit a PR. |
I submitted a PR. #2556 |
@melloware Any updates on when this may be merged? I have stumbled across this issue today. |
that's up to @mertsincan and PrimeTek! |
@melloware will add a new prop for this feature. |
@mertsincan this actually is much easier now that you switched to hooks because I can put this code in one place when the overlay panel renders and update the navigators appropriately without and additional property. |
I picked |
I'm submitting a ...
Codesandbox Case
https://primefaces.org/primereact/showcase/#/calendar
Current behavior
The Calendar component shows past and future dates even when minDate and maxDate are set.
Case in point: the "MinMax" example in the documentation. You can go past minDate and maxDate.
Expected behavior
Although disabled, dates set before minDate and after maxDate (whichever is present, if any) should not be shown.
React version:
16.3.1
PrimeReact version:
15.0.1
The text was updated successfully, but these errors were encountered: