Skip to content

Commit

Permalink
Fixes [BUG] Blocked aria-hidden on a <input> element when opening the…
Browse files Browse the repository at this point in the history
… dropdown for the first time. #474 (#476)
  • Loading branch information
AleixFerreCP authored Aug 23, 2024
1 parent 443195f commit f6fa7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/mat-select-search/mat-select-search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class MatSelectSearchComponent implements OnInit, OnDestroy, ControlValue
if (this.matOption) {
this.matOption.disabled = true;
this.matOption._getHostElement().classList.add('contains-mat-select-search');
this.matOption._getHostElement().setAttribute('aria-hidden', 'true');
this.matOption._getHostElement().setAttribute('role', 'presentation');
} else {
console.error('<ngx-mat-select-search> must be placed inside a <mat-option> element');
}
Expand Down

0 comments on commit f6fa7bf

Please sign in to comment.