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
When you change the locale of a Calendar widget, the InputText displaying the selected date does not change the format of the date and keeps the text as it was.
Only when you interact with the widget (e.g. focus the InputText) the formatted date gets changed.
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 6, 2023
Describe the bug
When you change the locale of a Calendar widget, the InputText displaying the selected date does not change the format of the date and keeps the text as it was.
Only when you interact with the widget (e.g. focus the InputText) the formatted date gets changed.
Reproducer
https://codesandbox.io/p/sandbox/primereact-test-forked-2ng4vx
PrimeReact version
10.2.1
React version
18.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
Firefox, Chrome
Steps to reproduce the behavior
Expected behavior
The InputText element of the Calendar widget should directly show the selected date formatted in the selected locale, not only on focus
The text was updated successfully, but these errors were encountered: