-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Description
Hello,
When using nested options (<optgroup
>), a <ul>
item gets added to contain the options.
However, this does conform to WCAG, as the group
inside of a listbox
only may contain elements with an option
role.
select2/src/js/select2/results.js
Lines 236 to 238 in ef33f4b
var $childrenContainer = $('<ul></ul>', { | |
'class': 'select2-results__options select2-results__options--nested' | |
}); |
This can be fixed by giving the <ul>
a role='none'
, as then it is ignored.
I would be open to writing a PR to fix this.