-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 doesn't stay anchored to element when scrolling #3128
Comments
Tooltips and Popover are positioned I should note that the latest version of react-bootstrap is still for v3 of bootstrap and so doesn't use Popper.js |
@jquense this example is a broken link. Do you have another link for a proper example? |
why is this closed ? |
I think it's the same issue from the Popper js library that
|
Is there any update on this? |
It should be noted that the original post here references reactstrap, which is a different library. If you have an issue with react-bootstrap, please open a new issue and include a reproducible example on CodeSandbox. |
FWIW – I was able to fix this by simply adding |
adding this line on top of html file worked for me |
Issue Description
Tooltip doesn't stay anchored to element when scrolling. Another way of phrasing it is that tooltip position doesn't change relative to the window, even when scrolling.
Expected Behavior
If I scroll, tooltip should stay anchored to the element it first appeared on. If scrolling so much that the element significantly disappears from view, tooltip should naturally disappear with it.
Actual Behavior
Tooltip remains in a fixed position relative to the window.
When tooltip first appears:
Tooltips position when scrolling:
What I've tried
positionFixed={false}
, but it doesn't appear to be recognized by reactstrap:Anything else that might help
Some source code:
The text was updated successfully, but these errors were encountered: