Skip to content

Commit

Permalink
fix(material/select): remove incompatible aria-autocomplete attribute
Browse files Browse the repository at this point in the history
Fixes a bug reported in MatSelect where the usage of aria-autocomplete
is not a valid attribute that can be used with aria role=listbox.
Removes the aria-autocomplete attribute to fix the violation:
aria-allowed-attr.

Fixes b/352496530
  • Loading branch information
essjay05 committed Sep 5, 2024
1 parent 54875a3 commit a241fdb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/material/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ export class MatSelectChange {
changeDetection: ChangeDetectionStrategy.OnPush,
host: {
'role': 'combobox',
'aria-autocomplete': 'none',
'aria-haspopup': 'listbox',
'class': 'mat-mdc-select',
'[attr.id]': 'id',
Expand Down

0 comments on commit a241fdb

Please sign in to comment.