This commit is contained in:
Henry Jameson 2026-08-05 18:39:49 +03:00
commit a4cd10aa2e

View file

@ -70,6 +70,9 @@ const ImageCropper = {
)
},
onCropperSelectionChange(event) {
if (!this.$refs.cropperCanvas) {
return // Cropper sends even before component is fully initialized
}
const cropperCanvas = this.$refs.cropperCanvas
const cropperCanvasRect = cropperCanvas.getBoundingClientRect()
const selection = event.detail