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
There is an issue with the automatic date formatting in the textbox of the Calendar component in PrimeReact v9.6.0. When attempting to manually enter the date into the textbox, the date gets incorrectly formatted. For instance, when trying to enter '08/31/2023', it gets automatically converted to '08/03/2023'. This behavior is also observed on the official demo site.
Click on the Calendar component to open the date picker.
In the textbox, attempt to manually enter the date '08/31/2023'.
The date is incorrectly formatted to '08/03/2023', reproducing the issue.
Expected behavior
The Calendar component's textbox should correctly format the manually entered date. When a user tries to input '08/31/2023', it should remain as '08/31/2023' and not be incorrectly changed.
The text was updated successfully, but these errors were encountered:
@bizwms isn't this a duplicate of this issue: #4134 ??
melloware
added
Resolution: Duplicate
Issue has already been reported or a pull request related to same issue has already been submitted
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Aug 4, 2023
@melloware
Is it unsupported to enter dates manually in the calendar component? #4134 is written as a new feature.
I think it's a bug that I can't enter even though there is a text box.
Describe the bug
There is an issue with the automatic date formatting in the textbox of the Calendar component in PrimeReact v9.6.0. When attempting to manually enter the date into the textbox, the date gets incorrectly formatted. For instance, when trying to enter '08/31/2023', it gets automatically converted to '08/03/2023'. This behavior is also observed on the official demo site.
Reproducer
https://primereact.org/calendar/
PrimeReact version
9.6.0
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
Chrome 115.0.5790.171(Official Build)(64 bit)
Steps to reproduce the behavior
The date is incorrectly formatted to '08/03/2023', reproducing the issue.
Expected behavior
The Calendar component's textbox should correctly format the manually entered date. When a user tries to input '08/31/2023', it should remain as '08/31/2023' and not be incorrectly changed.
The text was updated successfully, but these errors were encountered: