From cfb40cae0b6e6c49c8e44281ecd9ee24e9cb5c30 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Sun, 18 Aug 2024 16:42:10 +0200 Subject: [PATCH] Only count popups as open which are "open" --- public/scripts/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/popup.js b/public/scripts/popup.js index 25fce8efa..12790ebff 100644 --- a/public/scripts/popup.js +++ b/public/scripts/popup.js @@ -596,7 +596,7 @@ export class Popup { /** @returns {boolean} Checks if any modal popup dialog is open */ isPopupOpen() { - return Popup.util.popups.length > 0; + return Popup.util.popups.filter(x => x.dlg.hasAttribute('open')).length > 0; }, /**