Skip to content

bug(material/datepicker): Chrome; A <label> isn't associated with a form field  #29749

Closed
@cancakar35

Description

@cancakar35

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

I am using basic datepicker to select a single date. However, chrome devtools shows "A isn't associated with a form field." issue every time datepicker opened. The issiues caused by labels with the mat-calendar-body-hidden-label class.

Reproduction

StackBlitz link: https://stackblitz.com/edit/yyx8cv?file=package.json
Steps to reproduce:

  1. Open the datepicker

Expected Behavior

Not getting a warning.

Actual Behavior

Hundreds of "A isn't associated with a form field."

Environment

  • Angular: 18.2.4
  • CDK/Material: 18.2.4
  • Browser(s): Chrome 128
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions