(datepicker) Ability to enter time picker values via keyboard input #16
ashnewport
started this conversation in
Feedback
Replies: 1 comment
-
Hi @ashnewport Unless we got a PR solving this issue, it's going to wait some time :( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Love the datepicker library 👍
I was trying to enter a date/time into a field and kept getting unexpected results or
null
. Let's say I wanted to manually enter the time as03:00 AM
via the keyboard, when I type in the value it returns invalid. I think I understand how this is happening in that the validation or setting of the fields value is expecting a full datetime string in the format close tomonth/day/year, hour:minute meridian
. So entering a value starting with03:
will not be considered a valid month value.The feature request I'd like to discuss is to enable keyboard input to be allowed and valid with context to the type of input expected. E.g. time should be allowed to be entered in time fields, date should be allowed to be entered in date fields.
The demos at http://matheo.co/demos/datepicker showcase current behaviour.
For example:
6
into the 'TIME PICKER' input and observe the value below outputs as12:00 AM
6
into the 'DATETIME PICKER' input and observe the value below outputs as6/1/01, 12:00 AM
Beta Was this translation helpful? Give feedback.
All reactions