We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 463e144 commit 03b6e79Copy full SHA for 03b6e79
web_src/js/features/aria.js
@@ -34,8 +34,8 @@ function attachOneDropdownAria($dropdown) {
34
// Since #19861 we have prepared the "combobox" solution, but didn't get enough time to put it into practice and test before.
35
const isComboBox = $dropdown.find('input').length > 0;
36
37
- const focusableRole = isComboBox ? 'combobox' : 'button';
38
- const listPopupRole = isComboBox ? 'listbox' : 'menu';
+ const focusableRole = isComboBox ? 'combobox' : 'menu';
+ const listPopupRole = isComboBox ? 'listbox' : '';
39
const listItemRole = isComboBox ? 'option' : 'menuitem';
40
41
// make the item has role=option/menuitem, add an id if there wasn't one yet, make items as non-focusable
0 commit comments