Duplicated
Last Updated: 18 Sep 2025 07:10 by ADMIN
Christopher
Created on: 17 Sep 2025 16:30
Category: DatePicker
Type: Bug Report
0
Clearing the DatePicker input with a non-nullable DateTime property results in inconsistent state (with workaround)

When a DatePicker input is cleared by using the keyboard and the control loses focus, the state of a non-nullable DateTime property is inconsistent with the control. 

This behavior is appropriate; however, it can cause user confusion when the underlying value is used to query for data based on a value the user no longer sees.

My proposed solution (bug fix) is to return the value of the DatePicker to the last known good value when the control loses focus.

StateHasChanged() by itself does not cause a re-render of the component, however changing the @key value of the DatePicker does.

See this REPL for a demonstration of the issue and workaround/fix: https://blazorrepl.telerik.com/czEjvVlK18i471S622

 
Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
1 comment
ADMIN
Dimo
Posted on: 18 Sep 2025 07:10

Hi Christopher,

The current behavior is expected and documented. However, we agree that some UX improvements will be good, so I linked this thread to an already existing one on the same topic.

Regards,
Dimo
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.