Skip to content

Commit a7ef034

Browse files
committed
hopefully this fixes the tooltip bug
1 parent cda5657 commit a7ef034

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/tooltip.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function registerTooltipEvent(event) {
3434
let elm = tooltip.element;
3535
let func = tooltip.contentFunc;
3636
let callback = () => {
37+
if (!elm.parent) leave();
3738
requestAnimationFrame(() => func(elms.tooltip));
3839
}
3940
let leave = () => {

0 commit comments

Comments
 (0)