From 3fb647b34bd0cb6eafd61c4a21dcb0e6e2c22675 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 24 Mar 2022 13:50:22 +0200 Subject: fix minor renames --- src/components/image_cropper/image_cropper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/image_cropper/image_cropper.js') diff --git a/src/components/image_cropper/image_cropper.js b/src/components/image_cropper/image_cropper.js index e8d5ec6d..e72ed0e8 100644 --- a/src/components/image_cropper/image_cropper.js +++ b/src/components/image_cropper/image_cropper.js @@ -66,7 +66,7 @@ const ImageCropper = { } }, methods: { - destroy () { + unmounted () { if (this.cropper) { this.cropper.destroy() } @@ -117,7 +117,7 @@ const ImageCropper = { const fileInput = this.$refs.input fileInput.addEventListener('change', this.readFile) }, - beforeDestroy: function () { + beforeUnmount: function () { // remove the event listeners const trigger = this.getTriggerDOM() if (trigger) { -- cgit v1.2.3-70-g09d2 From 169d13680a72029cab71067abffbb4581cdb6b41 Mon Sep 17 00:00:00 2001 From: Tusooa Zhu Date: Sun, 10 Apr 2022 13:02:02 -0400 Subject: Fix image cropper not closing correctly --- src/components/image_cropper/image_cropper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/image_cropper/image_cropper.js') diff --git a/src/components/image_cropper/image_cropper.js b/src/components/image_cropper/image_cropper.js index e72ed0e8..05f6fd4c 100644 --- a/src/components/image_cropper/image_cropper.js +++ b/src/components/image_cropper/image_cropper.js @@ -66,7 +66,7 @@ const ImageCropper = { } }, methods: { - unmounted () { + destroy () { if (this.cropper) { this.cropper.destroy() } -- cgit v1.2.3-70-g09d2