bug(Mat Select): Keeps throwing FOR / ID error, when ID is given and visible in HTML #28943
Closed
1 task
Labels
needs triage
This issue needs to be triaged by the team
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When i assign an ID to mat-select
<mat-select
id="jobTitle"
I get the error, in Chrome
The label's for attribute doesn't match any element id. This might prevent the browser from correctly autofilling the form and accessibility tools from working correctly.
To fix this issue, make sure the label's for attribute references the correct id of a form field.
But the element with the id is clearly there (regularSiteOfWorking)
Reproduction
StackBlitz link:
Steps to reproduce:
1.
2.
Expected Behavior
See above
Actual Behavior
See above
Environment
The text was updated successfully, but these errors were encountered: