Commit 4b02ed7c authored by 王小白's avatar 王小白 Committed by hetech

popper: destroy popper instance(#13988)

parent c154292d
...@@ -121,6 +121,7 @@ loadingDirective.install = Vue => { ...@@ -121,6 +121,7 @@ loadingDirective.install = Vue => {
el.mask.parentNode.removeChild(el.mask); el.mask.parentNode.removeChild(el.mask);
toggleLoading(el, { value: false, modifiers: binding.modifiers }); toggleLoading(el, { value: false, modifiers: binding.modifiers });
} }
el.instance && el.instance.$destroy();
} }
}); });
}; };
......
...@@ -205,6 +205,10 @@ export default { ...@@ -205,6 +205,10 @@ export default {
} }
}, },
beforeDestroy() {
this.popperVM && this.popperVM.$destroy();
},
destroyed() { destroyed() {
const reference = this.referenceElm; const reference = this.referenceElm;
off(reference, 'mouseenter', this.show); off(reference, 'mouseenter', this.show);
......
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