From cf96891e08d696fc8b17e361e4f3807c6c759e57 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 17 Aug 2023 18:55:45 +0200 Subject: [PATCH] Fix the position of the overlay container in legacy dialogs See #5627 --- ts/WoltLabSuite/Core/Ui/Dialog.ts | 4 ++-- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ts/WoltLabSuite/Core/Ui/Dialog.ts b/ts/WoltLabSuite/Core/Ui/Dialog.ts index f984816b71..c1596460e9 100644 --- a/ts/WoltLabSuite/Core/Ui/Dialog.ts +++ b/ts/WoltLabSuite/Core/Ui/Dialog.ts @@ -286,7 +286,7 @@ const UiDialog = { }, 200); } - adoptPageOverlayContainer(data.dialog); + adoptPageOverlayContainer(_container); return data; }, @@ -814,7 +814,7 @@ const UiDialog = { } } - releasePageOverlayContainer(data.dialog); + releasePageOverlayContainer(_container); UiScreen.pageOverlayClose(); if (_activeDialog === null) { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index 8cdd28a9b4..071603ae14 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -234,7 +234,7 @@ define(["require", "exports", "tslib", "../Core", "../Dom/Change/Listener", "./S data.content.querySelector("input, textarea")?.focus(); }, 200); } - (0, PageOverlay_1.adoptPageOverlayContainer)(data.dialog); + (0, PageOverlay_1.adoptPageOverlayContainer)(_container); return data; }, /** @@ -669,7 +669,7 @@ define(["require", "exports", "tslib", "../Core", "../Dom/Change/Listener", "./S break; } } - (0, PageOverlay_1.releasePageOverlayContainer)(data.dialog); + (0, PageOverlay_1.releasePageOverlayContainer)(_container); UiScreen.pageOverlayClose(); if (_activeDialog === null) { _container.setAttribute("aria-hidden", "true"); -- 2.20.1