Unplanned
Last Updated: 07 Feb 2025 07:11 by Andrea
Andrea
Created on: 07 Feb 2025 07:11
Category: DateInput
Type: Bug Report
1
AutoCorrectParts="false" makes the DateInput accept a zero segment value and move the caret

When AutoCorrectParts is false and you type a date starting with 0, the caret will immediately move to the next DateTime format segment, before the user has typed the second date digit.

Test page: https://blazorrepl.telerik.com/cfOcaAbv48WGOUM530

<p><strong>Type 05 in the day segment:</strong></p>

@DateInputValue?.ToString("dd/MM/yyyy")
<br />
<TelerikDateInput @bind-Value="@DateInputValue"
                  Format="dd/MM/yyyy"
                  AutoCorrectParts="false" />

@code {
    private DateTime? DateInputValue { get; set; } = new DateTime(2025, 2, 6);
}

 

0 comments