Datepicker has decided to only allow 2-digit years on keyboard input

1 Answer 283 Views
DatePicker
Thomas
Top achievements
Rank 1
Thomas asked on 06 Nov 2023, 08:34 PM

Since upgrading to 14.0.1, if a date-picker is provided with a Date object that contains time (e.g., if I default it to "right now", aka `new Date()`), trying to change the value with the keyboard will only allow 2 digits.

So, effectively, as I try to type, say, 2013, the date-picker's year field will show:

0002
0020
0001
0013

I have not been able to find anything in the API that switches how many years the input should accept (only which year should be the "break around" for 2-digit years).

If the field is prefilled with a Date object with no time (i.e. time is 00:00:00), this doesn't happen.

What am I missing?

Adam
Top achievements
Rank 1
commented on 07 Nov 2023, 07:51 PM

I am having this issue as well! Seemed to be working fine before upgrading to 14.0.1.

1 Answer, 1 is accepted

Sort by
1
Tsvetelina
Telerik team
answered on 09 Nov 2023, 08:58 AM

Hi Thomas and Adama,

This was a bug on our side that was recently fixed. Please update to v14.1.0 to benefit from the fix:

https://www.telerik.com/kendo-angular-ui/components/installation/up-to-date/

Don't hesitate to reach out if you experience any problems following the update to v14.1.0.

Regards,
Tsvetelina
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
DatePicker
Asked by
Thomas
Top achievements
Rank 1
Answers by
Tsvetelina
Telerik team
Share this question
or