-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team
Description
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
Sonar is giving the error: "Associate a valid label to this input field."
input field contains the matInput attribute and there exists a mat-label but still getting this error.
Reproduction
Steps to reproduce:
- Create an html with mat-form-field
- Add mat-label inside
- Define input element with matInput attribute
- Run sonar scanner
Expected Behavior
No such Sonar error should be there if mat-label and matInput exist.
Actual Behavior
Sonar error: "Associate a valid label to this input field."
Environment
- Angular
- Material
- Sonar
- Windows
Metadata
Metadata
Assignees
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team