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
Position breaks when the reference has an SVG element directly inside #653
Comments
I took a look. This issue would be solved when we change The issued DOM tree FYI:
I think |
…correctly Some element (eg. svg) does not have `.offsetParent` so we can try the nextElementSibling of it
No, |
…correctly Some element (eg. svg) does not have `.offsetParent` so we can try the nextElementSibling of it
…correctly Some element (eg. svg) does not have `.offsetParent` so we can try the nextElementSibling of it
…correctly Some element (eg. svg) does not have `.offsetParent` so we can try the nextElementSibling of it
fixes #653 Some element (eg. svg) does not have `.offsetParent` so we can try the nextElementSibling of it
CodePen demo
https://codepen.io/anon/pen/djNawe
(remove the SVG element to see the difference)
(if you wrap the SVG in a
div
, it also works)Steps to reproduce the problem
top
andleft
values;What is the expected behavior?
Removing the SVG element makes it work as expected:
What went wrong?
When it has an SVG element, it breaks:
Any other comments?
I'm trying to integrate Popper.js on my component library (https://reakit.io).
The text was updated successfully, but these errors were encountered: