Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
fix(a11y): prevent list from being focusable
Browse files Browse the repository at this point in the history
- Explicitly disallow focusing of list, mainly fixes behavior in Firefox

Closes #898
  • Loading branch information
piebev authored and wesleycho committed Apr 6, 2016
1 parent 06bbd31 commit 4e9ab7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/select2/choices.tpl.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ul class="ui-select-choices ui-select-choices-content select2-results">
<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results">
<li class="ui-select-choices-group" ng-class="{'select2-result-with-children': $select.choiceGrouped($group) }">
<div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div>
<ul role="listbox"
Expand All @@ -8,4 +8,4 @@
</li>
</ul>
</li>
</ul>
</ul>

0 comments on commit 4e9ab7e

Please sign in to comment.