mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Only count popups as open which are "open"
This commit is contained in:
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user