tooltip
tooltip copied to clipboard
Tooltip jumping on sticky component
We render many tooltips on a date picker, the date picker is on a sticky component. As some points on the page, the tooltip jumps around. Any idea what is happening and how we can fix it? We've tried adding relative
wrappers but no luck. I know it is from the sticky component but I am not sure how to get it resolved.
Here is a screencast of the issue: https://share.vidyard.com/watch/1iyQFAAjHbfL7E4AL1aPKM?
Version:
"rc-tooltip": "^4.0.3",
Code (looping over this for each day which j is the week and i is the day):
<Tooltip
placement="top"
id={`tooltip-${j}-${i}`}
mouseLeaveDelay={0}
overlay={ day.disabled }
>
<div {...}>
<span>{ day.date ? format(day.date, 'd') : '' }</span>
</div>
</Tooltip>
i have the same problem