mirror of
https://github.com/open-webui/open-webui.git
synced 2025-08-28 14:50:46 +02:00
fix: tooltip
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user