Add has-asc class

This commit is contained in:
Webifi 2023-06-06 08:18:31 -05:00
parent d1cabf0071
commit fffe34c80c
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@
}
export const dispatchModalEsc = ():boolean|void => {
const stack = Array.from(document.querySelectorAll('.modal')).filter(s =>
const stack = Array.from(document.querySelectorAll('.modal, .has-esc')).filter(s =>
window.getComputedStyle(s).getPropertyValue('display') !== 'none'
)
const top:HTMLElement = stack.length === 1