Skip to content

Commit 3e2b296

Browse files
committed
refactor(material/select): replace cdkFocusTrap with cdkListboxUseActiveDescendant
Updates previous fix to account for previous fix angular#6856 which refactored focus on listbox to use aria-activedescendant instead to manage focus. Fixes b/285945157
1 parent 3ed1e7f commit 3e2b296

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material/select/select.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
<div
4646
#panel
4747
role="listbox"
48-
cdkFocusTrap
49-
cdkTrapFocusAutoCapture
48+
cdkListbox
49+
cdkListboxUseActiveDescendant
5050
tabindex="-1"
5151
class="mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open {{ _getPanelTheme() }}"
5252
[attr.id]="id + '-panel'"

0 commit comments

Comments
 (0)