Skip to content

matDatePicker could be more consistent between picking and typing dates #10645

@UltraMarco

Description

@UltraMarco

Bug, feature request, or proposal:

feature request

What is the expected behavior?

When leaving after directly typing a valid date in matDatePicker input, the date could be reformatted to reflect the control's value as if it was picked from the calendar.
E.g.:
speed typing "4 1 87" could automatically become "4/1/1987" (according to locale) when leaving the input

What is the current behavior?

Typed dates don't change after typing and leaving the input.

What is the use-case or motivation for changing an existing behavior?

This would make inserting dates more consistent with the global appearance of the control and less error-prone for the end users

Metadata

Metadata

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthelp wantedThe team would appreciate a PR from the community to address this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions