Skip to content

Commit

Permalink
fix(select): optgroup focus
Browse files Browse the repository at this point in the history
- Option group names are no longer focusable by default.
  • Loading branch information
mauromascarenhas committed Nov 19, 2022
1 parent 9aaccac commit c650b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
const selectOptions = $(realOption).children('option');
let lId = "opt-group-" + M.guid();
let groupParent = $(
`<li class="optgroup" role="group" aria-labelledby="${lId}"><span id="${lId}" role="presentation">${realOption.getAttribute('label')}</span></li>`
`<li class="optgroup" role="group" aria-labelledby="${lId}" tabindex="-1"><span id="${lId}" role="presentation">${realOption.getAttribute('label')}</span></li>`
)[0];
let groupChildren = [];
$(this.dropdownOptions).append(groupParent);
Expand Down

0 comments on commit c650b44

Please sign in to comment.