Skip to content

Releases: trendmicro-frontend/react-portal

v1.0.1

27 Dec 09:06
Compare
Choose a tag to compare

Bug Fixes

Allows React v0.14 and v15 as peerDependencies (6c8d0cf)

v1.0.0

27 Dec 08:52
83086b7
Compare
Choose a tag to compare

This release contains a breaking change, it will no longer wrap children with a div.

Portal v1.0.0 enables support for using ReactDOM.createPortal() with React v16. A legacy fallback is provided for backward compatibility with React v15.

Portal

<Portal>
    This text is transported to the end of document.body.
</Portal>

<Portal node={document.body && document.body.querySelector('#modal-container')}>
    This text is transported to a DOM element.
</Portal>

LegacyPortal

Use LegacyPortal if you need cross-frame rendering support.

<LegacyPortal
    node={window.top.document && window.top.document.querySelector('#modal-container')}
>
    This text is transported to a DOM element within the top window document.
</LegacyPortal>

v0.4.3

28 Nov 07:08
Compare
Choose a tag to compare

Fixed an issue that cannot remove a mounted React component from the DOM when specifying a node prop (67b3413)

v0.4.2

06 Oct 07:43
Compare
Choose a tag to compare

Support React v16.0

v0.4.1

05 Oct 10:44
Compare
Choose a tag to compare

Bump to v0.4.1

v0.4.0

05 Oct 10:30
Compare
Choose a tag to compare
  • Rename portalNode to defaultNode (3c8e079)
  • Remove unknown prop node from <div> tag (e9ec8e6)
  • Fullscreen modal from within an iframe (0ad68e8)

v0.3.0

02 Oct 16:58
Compare
Choose a tag to compare

Support for specifying a root DOM node rather than adding to the document.body (3831ad8)

<Portal node={document && document.querySelector('#portal')}>
    <Component />
</Portal>

v0.2.2

14 Sep 02:23
Compare
Choose a tag to compare

react-dom as peer dependency (ff8ff0e)

v0.2.1

14 Sep 02:16
Compare
Choose a tag to compare

Calling unmountComponentAtNode to prevent memory leaks (434a492)

v0.2.0

13 Sep 15:52
Compare
Choose a tag to compare

Remove prop-types from package dependencies