Skip to content

When parent is not set, then fallback to document.body - #191

Open
ziogaschr wants to merge 1 commit into
rstacruz:masterfrom
ziogaschr:handle-parent-not-in-dom
Open

ziogaschr wants to merge 1 commit into
rstacruz:masterfrom
ziogaschr:handle-parent-not-in-dom

Conversation

@ziogaschr

Copy link
Copy Markdown

Under some conditions in React, it might be that the parent hasn't been added in DOM yet. In this case, instead of failing, we can use the document.body.

This branch has not been deployed

No deployments
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.

1 participant