Calendar: viewDate change does not update displayed year #4147
Labels
Resolution: Workaround
Issue or pull request contains a workaround. It needs to be reviewed further by Core Team
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
When changing the property
viewDate
of aCalendar
component after the initial rendering, and the newviewDate
has a different year than the previously viewed date, the Calendar will show the year incorrectly.Reproducer
https://codesandbox.io/s/primereact-test-forked-zr0qtm?file=/src/index.js
PrimeReact version
9.2.0
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Steps to reproduce in linked codesandbox:
Expected behavior
The year set in viewDate should be displayed by the Calendar.
The text was updated successfully, but these errors were encountered: