From c524d53838319eccf88fa16d3de593dd20fae070 Mon Sep 17 00:00:00 2001 From: Ramil Valitov <16267156+rvalitov@users.noreply.github.com> Date: Mon, 23 Nov 2026 08:01:46 +0300 Subject: [PATCH] Fix input browser modal on the Simple tab The "Select From Inputs" modal is emitted by GenTabModals.cshtml, which is included inside the Generate tab pane. When the Simple tab is active that pane is display:none, so Bootstrap shows the modal backdrop but the modal itself never becomes visible, blocking the page. Detach the modal to before showing it so it is not constrained by the active tab pane. --- src/wwwroot/js/site.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wwwroot/js/site.js b/src/wwwroot/js/site.js index 370e370948..47f65b6739 100644 --- a/src/wwwroot/js/site.js +++ b/src/wwwroot/js/site.js @@ -1241,6 +1241,7 @@ class InputBrowserHelper { if (!this.inputImageBrowser) { this.inputImageBrowser = new GenPageBrowserClass('input_image_browser_container', this.listInputFiles.bind(this), 'inputimagebrowser', 'Thumbnails', this.describeInputFile.bind(this), this.selectInputFile.bind(this)); } + $('#input_image_browser_modal').appendTo('body'); $('#input_image_browser_modal').modal('show'); this.inputImageBrowser.navigate(''); this.inputImageBrowser.lightRefresh();