Hide popover on click
This commit is contained in:
parent
0e91958de5
commit
fcdea66a0f
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue