Skip to content

Commit 1c41e79

Browse files
fix: don't compute position on disconnected anchor
1 parent 958847e commit 1c41e79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Tooltip/Tooltip.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@ const Tooltip = ({
314314
return
315315
}
316316

317+
if (!activeAnchor?.isConnected) {
318+
return
319+
}
320+
317321
computeTooltipPosition({
318322
place,
319323
offset,

0 commit comments

Comments
 (0)