From aa635583401b12dd207154c692155ebed72fd486 Mon Sep 17 00:00:00 2001 From: "cinwell.li" Date: Wed, 29 Mar 2017 11:58:34 +0800 Subject: [PATCH] Scrollbar: compatible with vue 2.2.6, fixed #3797 (#3845) --- packages/scrollbar/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scrollbar/src/main.js b/packages/scrollbar/src/main.js index 8580927a7..b57737017 100644 --- a/packages/scrollbar/src/main.js +++ b/packages/scrollbar/src/main.js @@ -123,7 +123,7 @@ export default { !this.noresize && addResizeListener(this.$refs.resize, this.update); }, - destroyed() { + beforeDestroy() { if (this.native) return; !this.noresize && removeResizeListener(this.$refs.resize, this.update); }