Calendar: Updating the dateFormat does not reflect the changes on input without opening the datepicker #14047
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Despite making updates to the dateFormat using either the
setTranslation
method or by directly modifying thedateFormat
input value, the date format on the input does not get refreshed. However, when I change the date value or close the date picker by clicking on the input, it then updates the displayed date format.Environment
Stackblitz, PrimeNG issue reporting template
https://stackblitz.com/edit/zzrr7l
Reproducer
https://stackblitz.com/edit/zzrr7l
Angular version
16.2.0
PrimeNG version
16.7.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.18.0
Browser(s)
Chrome, Arc
Steps to reproduce the behavior
You will see the date formats on the p-calendar inputs do not get updated instantly.
If you click on an input, and close the datepicker popup, you'll see the date format on input will update properly.
Expected behavior
Date format on the p-calendar input should be updated instantly once we changed the date format.
The text was updated successfully, but these errors were encountered: