Skip to content

Commit fafd151

Browse files
fix: consider removed anchors
Co-authored-by: Ivan Palatov <[email protected]>
1 parent 24b2593 commit fafd151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Tooltip/Tooltip.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ const Tooltip = ({
559559
*/
560560
}
561561
})
562-
if (newAnchors.length) {
562+
if (newAnchors.length || removedAnchors.length) {
563563
setAnchorsBySelect((anchors) => [
564564
...anchors.filter((anchor) => removedAnchors.includes(anchor)),
565565
...newAnchors,

0 commit comments

Comments
 (0)