vue-popper: fix a node removal bug (#617)

pull/624/head
杨奕 2016-10-24 17:03:07 +08:00 committed by FuryBean
parent 7ce40a94aa
commit ef8ef954f9
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ export default {
beforeDestroy() { beforeDestroy() {
this.doDestroy(); this.doDestroy();
this.popperElm && this.popperElm &&
document.body.contains(this.popperElm) && this.popperElm.parentNode === document.body &&
document.body.removeChild(this.popperElm); document.body.removeChild(this.popperElm);
} }
}; };