Time picker buggy with keyboard after clearing.

1 Answer 50 Views
TimePicker
Tarjei
Top achievements
Rank 1
Tarjei asked on 14 Dec 2021, 02:34 PM

Example

Use keyboard arrows and set a time and date result: (Tue Dec 14 2021 01:01:00 GMT+0100 (sentraleuropeisk normaltid)).

Do the same thing but clear input field first, for example with CTRL-a + backspace or delete. Year is now 1980 (Tue Jan 01 1980 02:02:00 GMT+0100 (sentraleuropeisk normaltid))

 


1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 15 Dec 2021, 02:39 PM

Hi Tarjei,

The TimePicker component is designed to allow the end user to select time, event though it is working with Date objects. In most cases, the date part should not be relevant in the context of the TimePicker. Nevertheless, I understand that this is inconsistent behavior and in some scenarios it could cause problems for the developers, so I have logged an issue where you can follow its progress:

Meanwhile, as a temporary solution you could use the Date object and extract the time portion and use it to create a new Date with the today's date.

 

Regards,
Konstantin Dikov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TimePicker
Asked by
Tarjei
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or