@squadette/react-displace
Advanced tools
Comparing version 2.4.0-pre2 to 2.4.0-pre3
@@ -75,2 +75,5 @@ 'use strict'; | ||
} | ||
if (!this.container) { | ||
return null; | ||
} | ||
return ReactDOM.createPortal(React.createElement(WrappedComponent, this.props, this.props.children), this.container); | ||
@@ -77,0 +80,0 @@ } |
{ | ||
"name": "@squadette/react-displace", | ||
"version": "2.4.0-pre2", | ||
"version": "2.4.0-pre3", | ||
"description": "A higher order component that displaces your component into a remote region of the DOM", | ||
@@ -5,0 +5,0 @@ "main": "dist/displace.js", |
@@ -48,2 +48,5 @@ 'use strict'; | ||
} | ||
if (!this.container) { | ||
return null; | ||
} | ||
return ReactDOM.createPortal( | ||
@@ -50,0 +53,0 @@ React.createElement(WrappedComponent, this.props, this.props.children), |
25010
371