Skip to content

Commit 1f1f8d6

Browse files
fix: setTimeout() ResizeObserver callback
1 parent ee18133 commit 1f1f8d6

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
@@ -702,7 +702,7 @@ const Tooltip = ({
702702
return () => null
703703
}
704704
const contentObserver = new ResizeObserver(() => {
705-
updateTooltipPosition()
705+
setTimeout(() => updateTooltipPosition())
706706
})
707707
contentObserver.observe(contentWrapperRef.current)
708708
return () => {

0 commit comments

Comments
 (0)