Only count popups as open which are "open"

This commit is contained in:
Wolfsblvt
2024-08-18 16:42:10 +02:00
parent ded26f9783
commit cfb40cae0b

View File

@ -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;
},
/**