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

fix: tooltip

parent 63c09270
...@@ -10,18 +10,19 @@ ...@@ -10,18 +10,19 @@
$: if (tooltipElement && content) { $: if (tooltipElement && content) {
if (tooltipInstance) { if (tooltipInstance) {
tooltipInstance[0]?.destroy(); tooltipInstance.setContent(content);
} else {
tooltipInstance = tippy(tooltipElement, {
content: content,
placement: placement,
allowHTML: true
});
} }
tooltipInstance = tippy(tooltipElement, {
content: content,
placement: placement,
allowHTML: true
});
} }
onDestroy(() => { onDestroy(() => {
if (tooltipInstance) { if (tooltipInstance) {
tooltipInstance[0]?.destroy(); tooltipInstance.destroy();
} }
}); });
</script> </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