mirror of
https://github.com/ae-utbm/sith.git
synced 2025-06-07 19:55:20 +00:00
Synchronize tooltip-id and don't append tooltip to body twice
This commit is contained in:
parent
6bb6be011c
commit
e63a09ee7e
@ -109,10 +109,6 @@ function tooltipMouseover(event: MouseEvent) {
|
||||
top: `${y}px`,
|
||||
});
|
||||
});
|
||||
|
||||
if (!tooltip.isConnected) {
|
||||
document.body.append(tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
function tooltipMouseout(event: MouseEvent) {
|
||||
@ -151,7 +147,7 @@ new MutationObserver((mutations: MutationRecord[]) => {
|
||||
}
|
||||
}).observe(document.body, {
|
||||
attributes: true,
|
||||
attributeFilter: ["tooltip", "tooltip-class", "toolitp-position"],
|
||||
attributeFilter: ["tooltip", "tooltip-class", "toolitp-position", "tooltip-id"],
|
||||
subtree: true,
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user