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

fixes issue with shadowRoot and computed styles #74

Merged
merged 1 commit into from
Aug 10, 2016

Conversation

adevnadia
Copy link

@adevnadia adevnadia commented Aug 10, 2016

When a popper's reference element is inside shadowRoot, popper fails.

Codepen:
https://codepen.io/nadiam84/pen/yJQvkB

It happens inside getScrollParent function, when it tries to up the tree here: getScrollParent(element.parentNode). At some point parentNode of an element inside shadowRoot is going to be shadowRoot itself, and apparently you can't do getComputedStyle on it. This PR is fixing this problem.

All tests were green locally btw

@FezVrasta FezVrasta merged commit 4120b09 into floating-ui:v1-dev Aug 10, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants