Commit fd08afdd authored by qingwei.li's avatar qingwei.li

Popper: fix not destroy in keep-alive mode, fixed #1359

parent 807c0607
...@@ -152,5 +152,10 @@ export default { ...@@ -152,5 +152,10 @@ export default {
this.popperElm && this.popperElm &&
this.popperElm.parentNode === document.body && this.popperElm.parentNode === document.body &&
document.body.removeChild(this.popperElm); document.body.removeChild(this.popperElm);
},
// call destroy in keep-alive mode
deactivated() {
this.$options.beforeDestroy[0].call(this);
} }
}; };
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