fix #3525
This commit is contained in:
parent
d23ec577a0
commit
a4cd10aa2e
1 changed files with 3 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ const ImageCropper = {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
onCropperSelectionChange(event) {
|
onCropperSelectionChange(event) {
|
||||||
|
if (!this.$refs.cropperCanvas) {
|
||||||
|
return // Cropper sends even before component is fully initialized
|
||||||
|
}
|
||||||
const cropperCanvas = this.$refs.cropperCanvas
|
const cropperCanvas = this.$refs.cropperCanvas
|
||||||
const cropperCanvasRect = cropperCanvas.getBoundingClientRect()
|
const cropperCanvasRect = cropperCanvas.getBoundingClientRect()
|
||||||
const selection = event.detail
|
const selection = event.detail
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue