Incorrect year display in Calendar after navigating to next year #5533
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
I am using PrimeReact version 10.1.1 and have implemented the Calendar component. I have configured the calendar to open at the current date. However, the current behaviour differs from the default PrimeReact behaviour, which typically renders the state it was in before.
Steps to Reproduce:
Expected Behaviour:
Upon reopening the calendar, I expect to see the current month and the current year.
Actual Behavior:
However, what I observe is that the calendar displays the previous year, but with the correct dates for the current month of the current year.
Reproducer
https://codesandbox.io/p/sandbox/primereact-demo-forked-ygt9ly?file=%2Fsrc%2FApp.js
PrimeReact version
10.1.1
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Upon reopening the calendar, I expect to see the current month and the current year.
The text was updated successfully, but these errors were encountered: