This commit is contained in:
Daniel Ledda
2024-11-06 21:35:14 +01:00
parent 3e517a8ce8
commit a84e9418ba
4 changed files with 137 additions and 98 deletions

View File

@@ -91,7 +91,7 @@ export function setupTooltip(options: { carrier: Ref<HTMLElement | null> }) {
const ctx: TooltipContext = {
show(tooltip, x, y) {
if (carrier.value) {
carrier.value.firstChild!.textContent = tooltip;
(carrier.value.firstChild as HTMLElement)!.innerHTML = tooltip;
}
active.value = true;
listener({ x, y });