Skip to content

Commit

Permalink
fix(material/select): remove incompatible aria-autocomplete attribute (
Browse files Browse the repository at this point in the history
…#29645)

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

(cherry picked from commit 6077663)
  • Loading branch information
essjay05 authored and andrewseguin committed Sep 18, 2024
1 parent 7db4b5f commit 7ab65e4
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 7ab65e4

Please sign in to comment.