From 994af2162a39722ee00ce114df7c57550760fa3e Mon Sep 17 00:00:00 2001 From: gabrieljablonski Date: Mon, 12 Dec 2022 18:21:15 -0300 Subject: [PATCH] recalculate position on content change --- 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 f57c17723..c64517900 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -189,7 +189,7 @@ const Tooltip = ({ return () => { mounted = false } - }, [show, isOpen, anchorId, activeAnchor, place, offset, positionStrategy]) + }, [show, isOpen, anchorId, activeAnchor, content, place, offset, positionStrategy]) useEffect(() => { return () => {