Skip to content

Commit

Permalink
Merge pull request #3391 from projectblacklight/3384-image-area-bug
Browse files Browse the repository at this point in the history
fix double click bug
  • Loading branch information
jcoyne authored Jan 6, 2025
2 parents 7c80640 + 40d2fbe commit 65eddfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/spotlight/admin/croppable_modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 65eddfc

Please sign in to comment.