Skip to content

Commit

Permalink
Accessibility: fix role for nested options (select2#5916)
Browse files Browse the repository at this point in the history
  • Loading branch information
meldafert authored and anttikuuskoski committed Mar 28, 2022
1 parent c7f932b commit a558b76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/select2/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ define([
}

var $childrenContainer = $('<ul></ul>', {
'class': 'select2-results__options select2-results__options--nested'
'class': 'select2-results__options select2-results__options--nested',
'role': 'none'
});

$childrenContainer.append($children);
Expand Down

0 comments on commit a558b76

Please sign in to comment.