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: Month does not change when the onViewDateChange property is used #5754

Closed
vnedevaa opened this issue Jan 12, 2024 · 0 comments · Fixed by #5769
Closed

Calendar: Month does not change when the onViewDateChange property is used #5754

vnedevaa opened this issue Jan 12, 2024 · 0 comments · Fixed by #5769
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@vnedevaa
Copy link

Describe the bug

The issue arises when attempting to change the month using the quick button in the header. Clicking on the current month opens the month picker. However, when selecting a different month (e.g., May), the month does not change, and it retains the current month.

Reproducer

https://codesandbox.io/p/sandbox/primereact-demo-forked-7tm52p?file=%2Fsrc%2FApp.js

PrimeReact version

10.3.1

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Click the current month in the quick button.
  2. The month picker opens.
  3. Choose another month.
  4. The selected month is not applied.

Expected behavior

The expected outcome is a change in the month

@vnedevaa vnedevaa added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 12, 2024
@melloware melloware changed the title The month does not change when the onViewDateChange property is used Calendar: Month does not change when the onViewDateChange property is used Jan 12, 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 Jan 12, 2024
@melloware melloware added this to the 10.4.0 milestone Jan 15, 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