We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa34951 commit 94fe4f0Copy full SHA for 94fe4f0
web_src/js/modules/aria/dropdown.js
@@ -148,8 +148,8 @@ function attachInit($dropdown) {
148
// Since #19861 we have prepared the "combobox" solution, but didn't get enough time to put it into practice and test before.
149
const isComboBox = $dropdown.find('input').length > 0;
150
151
- dropdown[ariaPatchKey].focusableRole = isComboBox ? 'combobox' : 'button';
152
- dropdown[ariaPatchKey].listPopupRole = isComboBox ? 'listbox' : 'menu';
+ dropdown[ariaPatchKey].focusableRole = isComboBox ? 'combobox' : 'menu';
+ dropdown[ariaPatchKey].listPopupRole = isComboBox ? 'listbox' : '';
153
dropdown[ariaPatchKey].listItemRole = isComboBox ? 'option' : 'menuitem';
154
155
attachDomEvents($dropdown, $focusable, $menu);
0 commit comments