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

[components] Fix propType depending on window global #1321

Merged
merged 1 commit into from
May 23, 2019

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented May 22, 2019

The Poppable utility is referencing the window.Element global implicitly, which does not work in Node.js.

This PR makes it return PropTypes.any for that property in non-browser environments.

@rexxars rexxars requested a review from kristofferjs May 22, 2019 09:52
@rexxars rexxars merged commit 2eece6f into next May 23, 2019
@rexxars rexxars deleted the components-window-ref branch May 23, 2019 11:14
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