Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 35fe9b8

Browse files
cissyshinshahan
authored andcommitted
Fix invalid aria attributes in material dropdown select.
PiperOrigin-RevId: 205317442
1 parent d81eb4c commit 35fe9b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/material_select/dropdown_button.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
[disabled]="disabled"
1717
[role]="ariaRole"
1818
[attr.aria-haspopup]="popupType"
19-
aria-autocomplete="none"
2019
[attr.aria-owns]="ariaOwns"
2120
[attr.aria-expanded]="ariaExpanded"
2221
[attr.aria-activedescendant]="ariaActiveDescendant">

lib/material_select/material_dropdown_select.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
(trigger)="handleClick($event)"
2323
popupSource
2424
#source="popupSource"
25+
initPopupAriaAttributes="false"
2526
popupType="listbox"
26-
[ariaOwns]="listId"
27+
[ariaOwns]="visible ? listId : null"
2728
[ariaExpanded]="visible">
2829
&ngsp;<ng-content select="[buttonContent]"></ng-content>
2930
</dropdown-button>

0 commit comments

Comments
 (0)