Skip to content

Commit 94fe4f0

Browse files
committed
fix
1 parent fa34951 commit 94fe4f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/modules/aria/dropdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ function attachInit($dropdown) {
148148
// Since #19861 we have prepared the "combobox" solution, but didn't get enough time to put it into practice and test before.
149149
const isComboBox = $dropdown.find('input').length > 0;
150150

151-
dropdown[ariaPatchKey].focusableRole = isComboBox ? 'combobox' : 'button';
152-
dropdown[ariaPatchKey].listPopupRole = isComboBox ? 'listbox' : 'menu';
151+
dropdown[ariaPatchKey].focusableRole = isComboBox ? 'combobox' : 'menu';
152+
dropdown[ariaPatchKey].listPopupRole = isComboBox ? 'listbox' : '';
153153
dropdown[ariaPatchKey].listItemRole = isComboBox ? 'option' : 'menuitem';
154154

155155
attachDomEvents($dropdown, $focusable, $menu);

0 commit comments

Comments
 (0)