From fcdea66a0fd8b45f19304ed84e07047c5418a0c3 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sun, 4 May 2025 17:40:49 +0100 Subject: [PATCH] Hide popover on click --- internal/glance/static/js/popover.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/glance/static/js/popover.js b/internal/glance/static/js/popover.js index 5e38f9c..dc8abb8 100644 --- a/internal/glance/static/js/popover.js +++ b/internal/glance/static/js/popover.js @@ -38,6 +38,8 @@ function handleMouseEnter(event) { if (activeTarget !== target) { hidePopover(); requestAnimationFrame(() => requestAnimationFrame(showPopover)); + } else if (activeTarget.dataset.popoverTrigger === "click") { + hidePopover(); } return;