Skip to content

Commit

Permalink
tooltip: avoid a flash effect and weird initial transition
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaAmega authored Dec 2, 2023
1 parent 71f3496 commit 08aa7cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/tooltip/src/TooltipWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const TooltipWrapper = memo<PropsWithChildren<TooltipWrapperProps>>(
...tooltipStyle,
...theme.tooltip,
transform: animatedProps.transform ?? translate(x, y),
opacity: animatedProps.transform ? 1 : 0,
}

return (
Expand Down

0 comments on commit 08aa7cb

Please sign in to comment.