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
Pass a FormatSettings object with different displayFormat and inputFormat to the format property of the DatePicker.
Click on the first segment of the format in the input.
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
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