mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
popper: destroy popper instance(#13988)
This commit is contained in:
@@ -121,6 +121,7 @@ loadingDirective.install = Vue => {
|
||||
el.mask.parentNode.removeChild(el.mask);
|
||||
toggleLoading(el, { value: false, modifiers: binding.modifiers });
|
||||
}
|
||||
el.instance && el.instance.$destroy();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -205,6 +205,10 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
this.popperVM && this.popperVM.$destroy();
|
||||
},
|
||||
|
||||
destroyed() {
|
||||
const reference = this.referenceElm;
|
||||
off(reference, 'mouseenter', this.show);
|
||||
|
||||
Reference in New Issue
Block a user