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

Commit f55eeba

Browse files
committed
fix(select): fix restore focus on select close
closes #2349
1 parent aaa6e5a commit f55eeba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/select/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -870,10 +870,10 @@ function SelectProvider($$interimElementProvider) {
870870
element.removeClass('md-active');
871871
opts.parent[0].removeChild(element[0]); // use browser to avoid $destroy event
872872
opts.backdrop && opts.backdrop.remove();
873-
if (opts.restoreFocus) opts.target.focus();
874873
if (opts.disableParentScroll) {
875874
opts.restoreScroll();
876875
}
876+
if (opts.restoreFocus) opts.target.focus();
877877
});
878878
}
879879

0 commit comments

Comments
 (0)