Skip to content

Commit

Permalink
fix(autocomplete): always set tabindex to allow receiving focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Dec 7, 2015
1 parent f73ef23 commit ca8bc57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/autocomplete/js/autocompleteDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ function MdAutocomplete () {
// Set our variable for the link function above which runs later
hasNotFoundTemplate = noItemsTemplate ? true : false;

if (attr.hasOwnProperty('tabindex')) {
element.attr('tabindex', '-1');
}
element.attr('tabindex', '-1');

return '\
<md-autocomplete-wrap\
Expand Down

0 comments on commit ca8bc57

Please sign in to comment.