From b3f80eabb005e87c6a04b0a06c7b7303bd63baed Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 18 Mar 2020 00:45:10 +0100 Subject: [PATCH] Dialogs incorrectly tracked the number of open page overlays --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index 3e8f234cad..b8cfe360dd 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -836,6 +836,8 @@ define( } } + UiScreen.pageOverlayClose(); + if (_activeDialog === null) { elAttr(_container, 'aria-hidden', 'true'); elData(_container, 'close-on-click', 'false'); @@ -843,8 +845,6 @@ define( if (data.closable) { window.removeEventListener('keyup', _keyupListener); } - - UiScreen.pageOverlayClose(); } else { data = _dialogs.get(_activeDialog); -- 2.20.1