minor bug fix

This commit is contained in:
sairaj mote 2022-12-04 17:52:01 +05:30
parent 4f8b25d9b9
commit c27194d26a

View File

@ -86,7 +86,6 @@ function closePopup(options = {}) {
if (popupStack.peek() === undefined) if (popupStack.peek() === undefined)
return; return;
popupStack.peek().popup.hide(options) popupStack.peek().popup.hide(options)
zIndex--
} }
document.addEventListener('popupopened', async e => { document.addEventListener('popupopened', async e => {
@ -144,6 +143,7 @@ document.addEventListener('popupclosed', e => {
if (popupStack.items.length === 0) { if (popupStack.items.length === 0) {
getRef('main_card').removeAttribute('inert') getRef('main_card').removeAttribute('inert')
} }
zIndex--;
}) })
// displays a popup for asking permission. Use this instead of JS confirm // displays a popup for asking permission. Use this instead of JS confirm
const getConfirmation = (title, options = {}) => { const getConfirmation = (title, options = {}) => {