Calendar: When entering the time by hand into timeOnly calendar, values switch to NaN:NaN #5254
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
If I have a Calendar with the timeOnly and hourFormat="24" parameter and I enter the time in the format 09:00 directly into the input as text, it fails and switches to NaN:NaN. There is no option to recover from this.
Reproducer taken from the example from the documentaion
Reproducer
https://stackblitz.com/edit/vv7pr3?file=src%2FApp.vue
PrimeVue version
3.48.1
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Have a Calendar with a null value
Go into InputText from Calendar
Type 09:00
--> Value switches to NaN:NaN
Expected behavior
The time that was writteen is accepted as the time in the Calendar. AFAIK this has worked in earlier versions
The text was updated successfully, but these errors were encountered: