Skip to content

bug(datepicker): TouchUI causes ExpressionChangedAfterItHasBeenCheckedError on mat-form-field-should-float #25837

@AdditionAddict

Description

@AdditionAddict

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

Clicking input twice really fast causes ExpressionChangedAfterItHasBeenCheckedError

ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value for 'mat-form-field-should-float': 'false'. Current value: 'true'. Find more at https://angular.io/errors/NG0100 

Reproduction

Stackblitz

Expected Behavior

No error in console

Actual Behavior

Error in console

Environment

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

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions