Problem with alias: "datetime" and inputFormat: "HH:mm", strange behavior when I set value manually
Author: julienGrdCreated Apr 7, 2021Updated Jul 31, 2026
LabelsDates
hello, i use this component for format a HH:mm time (24 hours format).
I struggle to set value to my input. When i do this, the component have a really strange behavior : the caret can stay stuck in the :, or when i put a 2 in the first digit it automatically validate the hours parts.
If i don't set default value, the component seem to work perfectly
I even dont know which type of value give to the component, i tried HH:mm and HHmm but same result
you can find a fiddle showing the error here https://jsfiddle.net/hrwsm35q/3/
Put your cursor on the begginning of the textbox and write 2, instead of going to the second character it go directly to the minutes part.
thanks for your help !
Julien Gourdon
Source: RobinHerbots/Inputmask