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 select backdrop closing when parent is destroyed
Browse files Browse the repository at this point in the history
closes #2371
  • Loading branch information
vfrico authored and rschmukler committed Apr 20, 2015
1 parent 6e3b43c commit 2d66368
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 @@ -873,8 +873,8 @@ function SelectProvider($$interimElementProvider) {

return $mdUtil.transitionEndPromise(element, { timeout: 350 }).then(function() {
element.removeClass('md-active');
opts.parent[0].removeChild(element[0]); // use browser to avoid $destroy event
opts.backdrop && opts.backdrop.remove();
opts.parent[0].removeChild(element[0]); // use browser to avoid $destroy event
if (opts.disableParentScroll) {
opts.restoreScroll();
}
Expand Down

0 comments on commit 2d66368

Please sign in to comment.