Fix the position of the overlay container in legacy dialogs
authorAlexander Ebert <ebert@woltlab.com>
Thu, 17 Aug 2023 16:55:45 +0000 (18:55 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 17 Aug 2023 16:55:45 +0000 (18:55 +0200)
See #5627

ts/WoltLabSuite/Core/Ui/Dialog.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index f984816b71318a388de11c010a19941263bf4c7f..c1596460e9a67776a757c33aea8cec62b7ce572b 100644 (file)
@@ -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) {
index 8cdd28a9b4a653e28b181bed70e1086a54854a48..071603ae1476e3ded2dbe67ed873f5b5dedac501 100644 (file)
@@ -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");