mirror of https://github.com/ElemeFE/element
vue-popper: fix a node removal bug (#617)
parent
7ce40a94aa
commit
ef8ef954f9
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue