diff --git a/app/static/js/utils.js b/app/static/js/utils.js index ce384e75..a987ab2d 100644 --- a/app/static/js/utils.js +++ b/app/static/js/utils.js @@ -116,7 +116,7 @@ function menuer() { e.clientX < rect.left || e.clientX > rect.right || e.clientY + parentRect.height + 5 < rect.top || - e.clientY > rect.bottom + e.clientY > rect.bottom + parentRect.height + 5 ) { lastEl.style.display = "none"; lastEl = null; diff --git a/app/views/components/menus/popover_up.templ b/app/views/components/menus/popover_up.templ index fc06b92b..7c98125f 100644 --- a/app/views/components/menus/popover_up.templ +++ b/app/views/components/menus/popover_up.templ @@ -35,6 +35,7 @@ css top(topVal string) { script toggleTheThingUp(id string) { id = `popover-${id}`; + Utils.registerPopover(id); const popover = document.getElementById(id); if (popover.style.display !== "block") { popover.style.display = "block";