Skip to content

Commit

Permalink
fix(lifecycle): beforeDestroy -> beforeUnmount
Browse files Browse the repository at this point in the history
Signed-off-by: Jie Peng <im@jiepeng.me>
  • Loading branch information
neighborhood999 committed Aug 6, 2021
1 parent 8bc170a commit 703d00e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"@rollup/plugin-commonjs": "19.0.1",
"@rollup/plugin-node-resolve": "13.0.4",
"@rollup/plugin-replace": "3.0.0",
"@vue/babel-preset-app": "^4.5.13",
"@vue/cli-plugin-babel": "4.5.13",
"@vue/cli-service": "4.5.13",
"@vue/compiler-sfc": "3.1.5",
Expand Down
2 changes: 1 addition & 1 deletion src/components/VueSignaturePad.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default defineComponent({
this.resizeCanvas();
},
beforeDestroy() {
beforeUnmount() {
if (this.onResizeHandler) {
window.removeEventListener('resize', this.onResizeHandler, false);
}
Expand Down

0 comments on commit 703d00e

Please sign in to comment.