From 40d2fbe31444ff43bc57899a3a7e42b7c24f5900 Mon Sep 17 00:00:00 2001 From: dnoneill Date: Mon, 6 Jan 2025 13:20:58 -0500 Subject: [PATCH] fix double click bug --- app/javascript/spotlight/admin/croppable_modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/spotlight/admin/croppable_modal.js b/app/javascript/spotlight/admin/croppable_modal.js index 47b9bb42b..66b98e2f0 100644 --- a/app/javascript/spotlight/admin/croppable_modal.js +++ b/app/javascript/spotlight/admin/croppable_modal.js @@ -11,7 +11,7 @@ export default class CroppableModal { attachModalLoadBehavior() { // Listen for event thrown when modal is displayed with content - document.addEventListener('show.blacklight.blacklight-modal', function(e) { + document.addEventListener('loaded.blacklight.blacklight-modal', function(e) { var dataCropperDiv = $('#blacklight-modal [data-behavior="iiif-cropper"]'); if(dataCropperDiv) {