Allow closing via click.
This commit is contained in:
parent
2aeb21a7ba
commit
b272691e37
2 changed files with 7 additions and 3 deletions
|
|
@ -14,7 +14,10 @@ export const bindModals = () => {
|
|||
dialog[0]?.setAttribute('data-scripture', scripture);
|
||||
dialog[0]?.classList.remove("hidden");
|
||||
//document.body.classList.add("overflow-hidden");
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
dialog[0]?.addEventListener('click', (evt) => {
|
||||
evt.target === dialog[0] && dialog[0]?.close();
|
||||
});
|
||||
};
|
||||
Loading…
Reference in a new issue