mirror of
https://github.com/Xevion/glance.git
synced 2025-12-05 23:15:06 -06:00
Hide popover on click
This commit is contained in:
@@ -38,6 +38,8 @@ function handleMouseEnter(event) {
|
|||||||
if (activeTarget !== target) {
|
if (activeTarget !== target) {
|
||||||
hidePopover();
|
hidePopover();
|
||||||
requestAnimationFrame(() => requestAnimationFrame(showPopover));
|
requestAnimationFrame(() => requestAnimationFrame(showPopover));
|
||||||
|
} else if (activeTarget.dataset.popoverTrigger === "click") {
|
||||||
|
hidePopover();
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user