Component: Calendar - form control state mismatch on blur #13982
Labels
Resolution: Stale
Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Control should emit onBlur event AFTER is marked as touched. It's applied correctly for all other controls but not for Calendar for some reason.
I have a logic that I'm listening to onBlur event and after that creating dynamic error message below control. In the case of Calendar input is marked red, but the error message appears only after a second blur event occurs.
It's because this line should be moved after the model was marked as touched:
This is an example in inputNumber component:
Event emit is after the update model.
Environment
Windows + Chrome/Firefox
Reproducer
No response
Angular version
16.2.9
PrimeNG version
16.5.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: