Skip to content

Commit

Permalink
fix(select): give focus to the first option when loaded asynchronously (
Browse files Browse the repository at this point in the history
angular#11372)

This is to fix a problem with loosing the focus and not allowing
the keys to navigate through the options displayed in the dropdown menu.

Fixes angular#11357
  • Loading branch information
marosoft authored and mmalerba committed Jul 29, 2018
1 parent 9852ff7 commit 998199f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,7 @@ function SelectProvider($$interimElementProvider) {
$$rAF(function() {
element.addClass('md-active');
info.dropDown.element.css(animator.toCss({transform: ''}));
autoFocus(opts.focusedNode);

resolve();
});
Expand Down

0 comments on commit 998199f

Please sign in to comment.