Skip to content

Commit fdda551

Browse files
piebevfcaballero
piebev
authored andcommitted
fix(a11y): prevent list from being focusable
- Explicitly disallow focusing of list, mainly fixes behavior in Firefox Closes angular-ui#898
1 parent 3f4d890 commit fdda551

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/select2/choices.tpl.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ul class="ui-select-choices ui-select-choices-content select2-results">
1+
<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results">
22
<li class="ui-select-choices-group" ng-class="{'select2-result-with-children': $select.choiceGrouped($group) }">
33
<div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div>
44
<ul role="listbox"
@@ -8,4 +8,4 @@
88
</li>
99
</ul>
1010
</li>
11-
</ul>
11+
</ul>

0 commit comments

Comments
 (0)