mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
Popper: fix not destroy in keep-alive mode, fixed #1359
This commit is contained in:
parent
807c06071d
commit
fd08afdd90
@ -152,5 +152,10 @@ export default {
|
||||
this.popperElm &&
|
||||
this.popperElm.parentNode === document.body &&
|
||||
document.body.removeChild(this.popperElm);
|
||||
},
|
||||
|
||||
// call destroy in keep-alive mode
|
||||
deactivated() {
|
||||
this.$options.beforeDestroy[0].call(this);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user