diff --git a/javascript/imageviewer.js b/javascript/imageviewer.js index 69159be98..737fe483b 100644 --- a/javascript/imageviewer.js +++ b/javascript/imageviewer.js @@ -165,6 +165,7 @@ function modalLivePreviewToggle(event) { const modalToggleLivePreview = gradioApp().getElementById("modal_toggle_live_preview"); opts.js_live_preview_in_modal_lightbox = !opts.js_live_preview_in_modal_lightbox; modalToggleLivePreview.innerHTML = opts.js_live_preview_in_modal_lightbox ? "🗇" : "🗆"; + updateModalImageIfVisible(); event.stopPropagation(); }