Skip to content

Commit 86a9fe4

Browse files
fix: anchor filter on dom change
1 parent d7f98e8 commit 86a9fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Tooltip/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ const Tooltip = ({
568568
})
569569
if (newAnchors.length || removedAnchors.length) {
570570
setAnchorsBySelect((anchors) => [
571-
...anchors.filter((anchor) => removedAnchors.includes(anchor)),
571+
...anchors.filter((anchor) => !removedAnchors.includes(anchor)),
572572
...newAnchors,
573573
])
574574
}

0 commit comments

Comments
 (0)