Commit 62332f07 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Select: exec removeResizeListener in beforeDestroy hook, fixed #3797

parent 7f457e41
...@@ -665,8 +665,8 @@ ...@@ -665,8 +665,8 @@
}); });
}, },
destroyed() { beforeDestroy() {
if (this.handleResize) removeResizeListener(this.$el, this.handleResize); if (this.$el && this.handleResize) removeResizeListener(this.$el, this.handleResize);
} }
}; };
</script> </script>
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