Skip to content

Commit

Permalink
fix: anchor filter on dom change
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljablonski committed Nov 1, 2023
1 parent d7f98e8 commit 86a9fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ const Tooltip = ({
})
if (newAnchors.length || removedAnchors.length) {
setAnchorsBySelect((anchors) => [
...anchors.filter((anchor) => removedAnchors.includes(anchor)),
...anchors.filter((anchor) => !removedAnchors.includes(anchor)),
...newAnchors,
])
}
Expand Down

0 comments on commit 86a9fe4

Please sign in to comment.