Add has-asc class
This commit is contained in:
parent
d1cabf0071
commit
fffe34c80c
|
@ -37,7 +37,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
export const dispatchModalEsc = ():boolean|void => {
|
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'
|
window.getComputedStyle(s).getPropertyValue('display') !== 'none'
|
||||||
)
|
)
|
||||||
const top:HTMLElement = stack.length === 1
|
const top:HTMLElement = stack.length === 1
|
||||||
|
|
Loading…
Reference in New Issue