telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
466 stars 215 forks source link

[DatePicker] Clicking on the first segment of a configured format does not focus it #4243

Open zstoyanova9 opened 6 months ago

zstoyanova9 commented 6 months ago

Describe the bug When a format for the DatePicker is configured with a FormatSettings object and its first segment is clicked, the last segment gets focused instead. The issue reproduces only in Firefox and when the displayFormat and inputFormat properties have different values.

To Reproduce

  1. Pass a FormatSettings object with different displayFormat and inputFormat to the format property of the DatePicker.
  2. Click on the first segment of the format in the input.

For demonstration, open this StackBlitz example in Firefox: https://stackblitz.com/edit/angular-3plajd-7kyfhe

Expected behavior The first segment should be focused instead of the last segment.

Browser