You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
melloware
changed the title
Component: Calendar
Calendar: Year incorrectly disabled in navigator view
Jan 17, 2023
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Jan 17, 2023
I submitted a fix. It was only checking the first day of the year was over the maxDate but nothing checking the minDate
melloware
changed the title
Calendar: Year incorrectly disabled in navigator view
Calendar: Year incorrectly disabled in navigator view due to minDate
Jan 18, 2023
Describe the bug
When a month that is not the first month of the year (January) is set as the minimum date, the entire year is disabled.
Screen.Recording.2023-01-17.at.17.42.43.mov
Reproducer
https://codesandbox.io/embed/cranky-cloud-n76op7?fontsize=14&hidenavigation=1&theme=dark
PrimeReact version
8.7.0
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
All
Steps to reproduce the behavior
No response
Expected behavior
The expected behavior is that, even if a few months of a year are disabled, the entire current year should not be disabled. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
Screen.Recording.2023-01-17.at.17.48.12.mov
The text was updated successfully, but these errors were encountered: