Fix+Feature: data-modal-close global fix, Breeder-Profil Logo+Galerie (SW by-v901)
This commit is contained in:
parent
b17706e7ba
commit
c417891546
7 changed files with 76 additions and 13 deletions
|
|
@ -76,6 +76,9 @@ const UI = (() => {
|
|||
`;
|
||||
|
||||
overlay.querySelector('.modal-close-btn')?.addEventListener('click', close);
|
||||
overlay.addEventListener('click', e => {
|
||||
if (e.target.closest('[data-modal-close]')) close();
|
||||
});
|
||||
|
||||
document.getElementById('modal-container').appendChild(overlay);
|
||||
document.documentElement.classList.add('modal-open');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue