Duplicated
Last Updated: 31 Jan 2022 15:34 by ADMIN
John af P
Created on: 05 Jan 2022 17:08
Category: DatePicker
Type: Bug Report
1
Changing month part using DateTime? does not work when using leading 0.

When using a DateTime? for input and a specific format, for example yyyy-MM-dd. If you just want to change the month part and type 03 the focus shifts to the start of the input and the month part gets replaced by MM.

Reproduce:

https://blazorrepl.telerik.com/QGYFEfPU52ceM2wL03

Select the month part and type 03 for example. If using a non nullable DateTime, this does not happen.

 

 

Attached Files:
Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
5 comments
ADMIN
Hristian Stefanov
Posted on: 31 Jan 2022 15:34

Hi John,

I discussed the topic with the developer. As a result, we reopened the issue.

Please keep tracking the status of the item for more updates.

Thank you once again for noticing.

Regards,
Hristian Stefanov
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!
John af P
Posted on: 29 Jan 2022 19:26
In my post I explicity say " If using a non nullable DateTime, this does not happen"... But thanks for the info:)
ADMIN
Hristian Stefanov
Posted on: 28 Jan 2022 11:58

Hi John,

I tested the behavior, and it seems the issue is fixed only for a non-nullable DateTime value. The problem should have been fixed for nullable values as well. That being said, I will discuss the topic with the developer that worked on the issue and get back to you as soon as I can.

In the meantime, you can test with non-nullable value:

<div class="demo-section k-form k-form-vertical">
    <div class="k-form-field">
        <label for="travel-date" class="k-label k-form-label">Travel Date</label>
        <div class="k-form-field-wrap">
            <TelerikDatePicker @bind-Value="@selectedDate" Id="travel-date" Format="yyyy-MM-dd"></TelerikDatePicker>
        </div>
    </div>
    <div class="k-form-field">
        <p>The selected travel date is: <strong>@selectedDate.ToLongDateString()</strong></p>
    </div>
</div>

@code  {
    private DateTime selectedDate = DateTime.Now;
}

Regards,
Hristian Stefanov
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!
John af P
Posted on: 23 Jan 2022 16:37
The issue you link to is marked as completed. But this is not fixed.
ADMIN
Hristian Stefanov
Posted on: 11 Jan 2022 16:32

Hi John,

Thank you for the detailed description and provided reproduction.

The reported issue is a confirmed bug. We already have an open bug report that will cover the behavior here planned for our next 3.0.0 release:

DatePicker loses focus when the input date starts with 0

I'm marking this item as "Duplicated" to the above public post.

Please let me know if you need more information.

Regards,
Hristian Stefanov
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!