Skip to content

Commit

Permalink
fix buttonlist dropmenu items
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Andrés <[email protected]>
  • Loading branch information
DiegoAndresCortes authored and live627 committed Oct 12, 2024
1 parent d7e7026 commit b9949c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Themes/default/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1678,8 +1678,10 @@ document.addEventListener('DOMContentLoaded', () => {
item.classList.add('visible');
});

document.addEventListener('click', () => {
item.classList.remove('visible');
document.addEventListener('click', e => {
if (!item.contains(e.target)) {
item.classList.remove('visible');
}
});
}

Expand Down

0 comments on commit b9949c2

Please sign in to comment.