Skip to content

DateInput/DatePicker with allowCaretMode set to true and format="d/M/y" does not allow to input a multi-digit year #4586

@georgi-sla

Description

@georgi-sla

Description

Currently, when the format property of the DateInput is set to "d/M/y", allowCaretMode is enabled, and the user enters a single-digit day and month, entering a multi-digit year in the component is not possible.

Steps To Reproduce

  1. Create a DateInput component.
  2. Set the allowCaretMode to true.
  3. Set the format to "d/M/y".
  4. Enter one digit for day and month.
  5. Try entering a multi-digit year.

Please, check out the following StackBlitz demo: https://stackblitz.com/edit/angular-zwfs95xr

Screenshots or video

No response

Actual Behavior

When allowCaretMode is enabled and the format is set to "d/M/y", the user cannot enter a multi-digit year when the day and month are single digits.

Expected Behavior

The user should be able to enter a multi-digit year regardless of the setting of the allowCaretMode and format properties as well as the values for the day and month.

Browser

Chrome

Browser version

latest

OS type

MacOS

OS version

No response

Last working version of the Kendo UI for Angular package (if regression).

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions