Skip to content

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 angular-ui#898
  • Loading branch information
piebev authored and fcaballero committed Apr 25, 2016
1 parent 6f47a3d commit 158ffa9
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 158ffa9

Please sign in to comment.