Compare commits

...

1 Commits

2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div
v-if="tooltipText"
v-show="tooltipText"
ref="tooltipRef"
class="node-tooltip"
:style="{ left, top }"
@@ -34,7 +34,8 @@ const left = ref<string>()
const top = ref<string>()
function hideTooltip() {
return (tooltipText.value = '')
if (!tooltipText.value) return
tooltipText.value = ''
}
async function showTooltip(tooltip: string | null | undefined) {

View File

@@ -1,6 +1,6 @@
<template>
<div
v-if="isVisible"
v-show="isVisible"
class="pointer-events-none absolute z-9999 border border-blue-400 bg-blue-500/20"
:style="rectangleStyle"
/>