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 restore focus on select close
Browse files Browse the repository at this point in the history
closes #2349
  • Loading branch information
rschmukler committed Apr 16, 2015
1 parent aaa6e5a commit f55eeba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,10 +870,10 @@ function SelectProvider($$interimElementProvider) {
element.removeClass('md-active');
opts.parent[0].removeChild(element[0]); // use browser to avoid $destroy event
opts.backdrop && opts.backdrop.remove();
if (opts.restoreFocus) opts.target.focus();
if (opts.disableParentScroll) {
opts.restoreScroll();
}
if (opts.restoreFocus) opts.target.focus();
});
}

Expand Down

0 comments on commit f55eeba

Please sign in to comment.