Skip to content

Commit

Permalink
Merge pull request neighborhood999#329 from neighborhood999/fix/lifec…
Browse files Browse the repository at this point in the history
…ycle

fix(lifecycle): beforeDestroy -> beforeUnmount
  • Loading branch information
neighborhood999 authored Aug 6, 2021
2 parents 8bc170a + 703d00e commit a866458
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 a866458

Please sign in to comment.