Skip to content
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: Incorrect year with numberOfMonths and yearNavigator #6285

Closed
dominikhiebler opened this issue Apr 2, 2024 · 1 comment · Fixed by #6294
Closed

Calendar: Incorrect year with numberOfMonths and yearNavigator #6285

dominikhiebler opened this issue Apr 2, 2024 · 1 comment · Fixed by #6294
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@dominikhiebler
Copy link

Describe the bug

The year is displayed incorrectly when the calendar is used with multiple months and year navigator. When navigating to January the year is incorrect.
Selection_1195

See also: #4058

Reproducer

https://stackblitz.com/edit/zv612l-ttbgtp

PrimeReact version

10.6.2

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Create a Calendar with yearNavigator and numberOfMonths.
  2. Change first month to december
  3. January is displayed with previous year

Expected behavior

No response

@dominikhiebler dominikhiebler added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 2, 2024
@melloware 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 Apr 3, 2024
@melloware melloware self-assigned this Apr 3, 2024
@melloware melloware added this to the 10.6.3 milestone Apr 3, 2024
melloware added a commit to melloware/primereact that referenced this issue Apr 3, 2024
@melloware
Copy link
Member

Thanks for the report! PR submitted.

nitrogenous added a commit that referenced this issue Apr 3, 2024
Fix #6285: Calendar multiple months with yearNavigator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants