From fafd151dcc03d3fe703db13a76379fbad97fabfc Mon Sep 17 00:00:00 2001 From: Gabriel Jablonski Date: Mon, 23 Oct 2023 11:26:58 -0300 Subject: [PATCH] fix: consider removed anchors Co-authored-by: Ivan Palatov --- src/components/Tooltip/Tooltip.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index e68d990a..c0f122f1 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -559,7 +559,7 @@ const Tooltip = ({ */ } }) - if (newAnchors.length) { + if (newAnchors.length || removedAnchors.length) { setAnchorsBySelect((anchors) => [ ...anchors.filter((anchor) => removedAnchors.includes(anchor)), ...newAnchors,