Replies: 1 comment
-
Hey @nvolungis , It's a bit late, but it still may help 😊 To prevent the unmount/remount of the Tooltip component every time, you have to be careful not to set its key to <TooltipWithBounds
key={isTooltipOpen ? 1 : 0} // needed for bounds to update correctly
style={{
...defaultStyles,
opacity: isTooltipOpen ? 1 : 0,
transition: 'all 0.1s ease-out',
}}
left={left}
top={top} Here is a codesanbox showcasing it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
I've been trying to figure out a way to transition a tooltip from one location to the next. My approach was to add transitions on the transform property, but every time tooltip data is updated the Tooltip component re-mounts so the transition is lost. I've observed this with both Tooltip and TooltipInPortal. Any ideas of ways to either prevent the remount, or accomplish the transition some other way?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions