Commit f9482275 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: tooltip

parent 63c09270
......@@ -10,18 +10,19 @@
$: if (tooltipElement && content) {
if (tooltipInstance) {
tooltipInstance[0]?.destroy();
}
tooltipInstance.setContent(content);
} else {
tooltipInstance = tippy(tooltipElement, {
content: content,
placement: placement,
allowHTML: true
});
}
}
onDestroy(() => {
if (tooltipInstance) {
tooltipInstance[0]?.destroy();
tooltipInstance.destroy();
}
});
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment