Skip to content

Commit 994af21

Browse files
recalculate position on content change
1 parent d349503 commit 994af21

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
@@ -189,7 +189,7 @@ const Tooltip = ({
189189
return () => {
190190
mounted = false
191191
}
192-
}, [show, isOpen, anchorId, activeAnchor, place, offset, positionStrategy])
192+
}, [show, isOpen, anchorId, activeAnchor, content, place, offset, positionStrategy])
193193

194194
useEffect(() => {
195195
return () => {

0 commit comments

Comments
 (0)