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: yearNavigator + view="month" doesn't work #7496

Closed
Minitron5000 opened this issue Dec 11, 2024 · 0 comments · Fixed by #7503
Closed

Calendar: yearNavigator + view="month" doesn't work #7496

Minitron5000 opened this issue Dec 11, 2024 · 0 comments · Fixed by #7503
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@Minitron5000
Copy link

Describe the bug

When yearNavigator and view="month" props are used together, selected year is being replaced with the current year when calendar closes.

Reproducer

https://stackblitz.com/edit/8db5ygu5-1dstpscq

System Information

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    primereact: 10.8.5 => 10.8.5 
    react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

  1. Click on calendar input
  2. Select year 2020
  3. Select January
    Result: January 2024 is displayed in the input

Expected behavior

Expected result: January 2020 is displayed in the input

@Minitron5000 Minitron5000 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 11, 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 Dec 11, 2024
@melloware melloware added this to the 10.8.6 milestone Dec 14, 2024
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