vaadin / web-components

A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
https://vaadin.com/docs/latest/components
466 stars 83 forks source link

[time-picker] Enable simple value parsing #3209

Open juuso-vaadin opened 2 years ago

juuso-vaadin commented 2 years ago

Describe your motivation

Being able to type in just numbers without separators would allow faster input and improve the UX. Time is something that can be expected to be primarily typed in rather that picked from list of options.

Describe the solution you'd like

Inputting "1245" should result "12:45".

Additionally it would be nice if both "0945" and "945" would result "09:45".

Additional context

<input type="time"> doesn't require typing in the separators. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time

rolfsmeds commented 2 years ago

Custom parsing formats should be implemented together with custom presentation formats: #1030.