Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip jumping on sticky component #214

Open
zlwaterfield opened this issue Apr 24, 2020 · 1 comment
Open

Tooltip jumping on sticky component #214

zlwaterfield opened this issue Apr 24, 2020 · 1 comment

Comments

@zlwaterfield
Copy link

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>
@alionaSipchuk
Copy link

i have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants