Commit ef8ef954 authored by 杨奕's avatar 杨奕 Committed by FuryBean

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

parent 7ce40a94
...@@ -150,7 +150,7 @@ export default { ...@@ -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);
} }
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment