mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 02:18:22 +02:00
Hide popover on click
This commit is contained in:
parent
0e91958de5
commit
fcdea66a0f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user