Skip to content

Commit

Permalink
fix double click bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Jan 6, 2025
1 parent 7c80640 commit 40d2fbe
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 40d2fbe

Please sign in to comment.