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

html { position: relative } breaks scrolling #1114

Closed
felixscheinost opened this issue May 25, 2020 · 2 comments · Fixed by #1141
Closed

html { position: relative } breaks scrolling #1114

felixscheinost opened this issue May 25, 2020 · 2 comments · Fixed by #1141
Labels
bug Something is not working. NEEDS: triage TARGETS: browser compat This issue affects only specific browsers.

Comments

@felixscheinost
Copy link

CodeSandbox demo

https://codesandbox.io/s/clever-clarke-lwebh?file=/index.html

Steps to reproduce the problem

  1. Make tooltip very long so that it requires scrolling
  2. Add CSS html { position: relative }

What is the expected behavior?

When scrolling the tooltip scrolls with the button.

What went wrong?

The tooltip stays in the same position (is moved by popper). Page can be scrolled infinitely.

Any other comments?

html { position: relative } might not be sensible so I am not sure if this is a bug. But still, the scrolling behaviour seems kind of weird so I am hoping on your input.

One workaround is to simply add another container with position: relative around the tooltip and button: https://codesandbox.io/s/competent-proskuriakova-703dp?file=/index.html

@felixscheinost felixscheinost added bug Something is not working. NEEDS: triage labels May 25, 2020
@FezVrasta
Copy link
Member

It seems to happen only on Firefox, may you confirm?

@felixscheinost
Copy link
Author

Thanks for the quick response!

Huh, didn't notice that. But yes, can confirm it only happens on Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working. NEEDS: triage TARGETS: browser compat This issue affects only specific browsers.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants