-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Add default PortalContext if it's undefined #514
Conversation
it can be undefined if the script that runs javascript in the htmlpage is called before the body was rendered. Eg. in the element
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 35fb93a:
|
Deploy preview for reakit ready! Built with commit 35fb93a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! :D
Thanks a lot for contributing! Based on our community guidelines, every person who has a PR of any kind merged is offered an invitation to the Reakit organization. Should you accept, you'll get write access to the main repository and a fancy Reakit logo on your GitHub profile. You'll be able to label and close issues, create new branches etc. Make sure to read our contribution and community guidelines, which explains all of this in more detail. If you have any questions, let me know! |
Should fix below issue, when PortalContext is undefined. See the commit message for good description.
Closes #513
Does this PR introduce a breaking change?
Unfortunately, not sure.
I couldn't figure out when
document
would ever be undefined. But in that case, the outcome is different now.