Skip to content

Commit

Permalink
Fixed duplicate beforeUnmount
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Sep 28, 2020
1 parent ed0fdc9 commit 784c95c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default {
this.scrollHandler = null;
}
this.target = null;
this.container = null;
},
methods: {
itemClick(event) {
Expand Down Expand Up @@ -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);
},
Expand Down

0 comments on commit 784c95c

Please sign in to comment.