You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: