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
Seems super niche so I'm not sure we'd be adding a warning unless somebody sends a PR. You can render <Fragment><noscript>...</noscript>{portal}</Fragment> as a work around.
gaearon
changed the title
ReactDOM.createPortal doesn't render if descendant of a noscript tag
Warn if ReactDOM.createPortal is inside a noscript or other text content tag
Nov 1, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When calling
ReactDOM.createPortal
from within a<noscript />
, nothing happens, no error is logged.What is the expected behavior?
Whether:
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Repro
https://jsfiddle.net/bloodyowl/n5u2wwjg/223296/
The text was updated successfully, but these errors were encountered: