Unplanned
Last Updated: 06 Jun 2025 14:14 by Amanatios Amanatidis
Amanatios Amanatidis
Created on: 06 Jun 2025 14:14
Category: TimePicker
Type: Bug Report
2
TimePicker validation triggered on attempting to change its default value

Description

TimePicker bound to a non-nullable DateTime property. User input is marked as invalid, when they change only part of the default TimePicker value.

Steps To Reproduce

  1. Run the following REPL example: https://blazorrepl.telerik.com/GpEUOflI50gehA9B54
  2. Focus the hour part of the input and type in a number, e.g., 3
  3. Blur the TimePicker

Actual Behavior

On beginning to type, the k-invalid class is applied to the TimePicker element. When the use clicks away, the current input value (e.g., 3:00 AM) is replaced with the default value (12:00 AM).

If you type the whole value (e.g., 3:45 AM) and then click away from the component, the k-invalid class is removed and the value is accepted as valid.

Expected Behavior

The k-invalid class should not be applied to the TimePicker in the scenario described above. The used should be able to change only the hour part of the value, or the minutes, without having to type in the whole value.

Browser

All

Last working version of Telerik UI for Blazor (if regression)

8.1.1

0 comments