Skip to content

bug(Datepicker): with signal forms the input field automatically interprets incomplete data during input, thereby hindering/preventing input #32442

@lpl14

Description

@lpl14

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When I want to change the date in the input field of a datepicker bound to a signal form, the characters I enter are interpreted immediately. This either leads to the previous entry being deleted if the text cannot be parsed, or to completion based on insufficient information.

Reproduction

StackBlitz link: https://stackblitz.com/edit/xn8jckol?file=src%2Fexample%2Fdatepicker-overview-example.ts
Steps to reproduce:

  1. click into text input
  2. try to delete the input and enter a different date

Expected Behavior

An undisturbed entry of a new date.

Actual Behavior

Deleting or automatically completing of incomplete data.

Environment

  • Angular: 21.0.1
  • CDK/Material: 21.0.1
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions