Skip to content

Portal break when node=document.body #211

@hepiyellow

Description

@hepiyellow

Naively I set <Portal node={document.body} >... and it breaks with react 15 (works with 16).
When I say break, I mean that the portal content is replacing the body instead of appending to it.

Until I figured out that I can simply omit the node prop, and use react-portal's default behaviour.

I just thought this is something that might either require special code handling,
or at least a stronger mention in the documentation.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions