Fixed duplicate beforeUnmount
parent
ed0fdc98a5
commit
784c95cdcb
|
@ -67,6 +67,7 @@ export default {
|
|||
this.scrollHandler = null;
|
||||
}
|
||||
this.target = null;
|
||||
this.container = null;
|
||||
},
|
||||
methods: {
|
||||
itemClick(event) {
|
||||
|
@ -187,15 +188,6 @@ export default {
|
|||
document.getElementById(this.appendTo).removeChild(this.container);
|
||||
}
|
||||
},
|
||||
beforeUnmount() {
|
||||
this.restoreAppend();
|
||||
this.unbindResizeListener();
|
||||
this.unbindOutsideClickListener();
|
||||
this.unbindScrollListener();
|
||||
this.scrollHandler = null;
|
||||
this.target = null;
|
||||
this.container = null;
|
||||
},
|
||||
visible(item) {
|
||||
return (typeof item.visible === 'function' ? item.visible() : item.visible !== false);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue