Skip to content

Commit 1f4594a

Browse files
authored
Merge pull request #852 from ReactTooltip/fix-position-content-race-condition
fix: recalculate tooltip position on content change
2 parents d349503 + 994af21 commit 1f4594a

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)