Select: exec removeResizeListener in beforeDestroy hook, fixed #3797

pull/3831/head
Leopoldthecoder 2017-03-27 16:17:19 +08:00 committed by 杨奕
parent 7f457e419e
commit 62332f07ce
1 changed files with 2 additions and 2 deletions

View File

@ -665,8 +665,8 @@
});
},
destroyed() {
if (this.handleResize) removeResizeListener(this.$el, this.handleResize);
beforeDestroy() {
if (this.$el && this.handleResize) removeResizeListener(this.$el, this.handleResize);
}
};
</script>