flatpickr / flatpickr

lightweight, powerful javascript datetimepicker with no dependencies

Home Page:https://flatpickr.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

valueChange on keyDown in datetime time input

breezyS opened this issue · comments

I have a requirement to trigger a valueChange on keyDown when the user manually types in a time in a datetime flatpickr instance. Currently the typed time input only updates when it is blurred.

Is there any practical way to trigger an event like this which in return triggers a flatpickr.setDate() or something the likes?

added a custom keyup event to the minute and hour input and works good enough