Set initial null value in DatePicker with strict mode

1 Answer 1898 Views
DatePicker
Megan
Top achievements
Rank 1
Iron
Iron
Megan asked on 07 Oct 2022, 04:07 PM

The datepicker is able to set its own value to null with no errors, but if I try to set the initial value to null or create a clear function to make it null, strict mode won't let me. And if I try to change the variable bound to the datepicker to a Date | null type, I get errors that null is not a valid option.

How can I programmatically set the value to null with strict mode on?

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 12 Oct 2022, 08:45 AM

Hi Megan,

Indeed, this is a known bug logged internally and in the following bug report:

https://feedback.telerik.com/kendo-angular-ui/1572132-timepicker-value-to-orestrictive-does-not-allow-null-undefined

Feel free to follow the thread to receive updates on when the fix is available.

Regards,
Yanmario
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DatePicker
Asked by
Megan
Top achievements
Rank 1
Iron
Iron
Answers by
Yanmario
Telerik team
Share this question
or