You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 6, 2025
Describe the bug
If the date in the onChange handler of the Calendar was not updated in external state, the calendar shows incorrect date in date input.
Reproducer
https://codesandbox.io/p/sandbox/primereact-calendar-displays-incorrect-value-if-new-value-was-not-applied-in-onchange-sw2547
System Information
Steps to reproduce the behavior
Actual behavior: some date is displayed inside the input
Expected behavior: no date should be displayed inside the input
If you click on date input again - date will disappear, as it should be.
Expected behavior
Calendar component should take into account the date provided in props all the time, even if this date wasn't changed
The text was updated successfully, but these errors were encountered: