Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(select): fix cycle option focus after keyboard search
Browse files Browse the repository at this point in the history
After keyboard search option focus cycling would start from previously focused element
  • Loading branch information
brandom authored and rschmukler committed Jul 6, 2015
1 parent c7a8c6c commit cc8850b
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 @@ -877,6 +877,7 @@ function SelectProvider($$interimElementProvider) {
default:
if (ev.keyCode >= 31 && ev.keyCode <= 90) {
var optNode = opts.selectEl.controller('mdSelectMenu').optNodeForKeyboardSearch(ev);
opts.focusedNode = optNode || opts.focusedNode;
optNode && optNode.focus();
}
}
Expand Down

0 comments on commit cc8850b

Please sign in to comment.