Hide popover on click
This commit is contained in:
1 parent
0e91958de5
commit
fcdea66a0f
1 file changed
+2
@@ -38,6 +38,8 @@ function handleMouseEnter(event) {
|
||||
if (activeTarget !== target) {
|
||||
hidePopover();
|
||||
requestAnimationFrame(() => requestAnimationFrame(showPopover));
|
||||
} else if (activeTarget.dataset.popoverTrigger === "click") {
|
||||
hidePopover();
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user