react-portal
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -85,3 +85,3 @@ import React from 'react'; | ||
} | ||
this.portal = ReactDOM.render(React.cloneElement(props.children, {closePortal: this.closePortal}), this.node); | ||
this.portal = ReactDOM.unstable_renderSubtreeIntoContainer(this, React.cloneElement(props.children, {closePortal: this.closePortal}), this.node); | ||
} | ||
@@ -88,0 +88,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"author": "Vojtech Miksu <vojtech@miksu.cz>", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -124,3 +124,3 @@ 'use strict'; | ||
} | ||
this.portal = _reactDom2['default'].render(_react2['default'].cloneElement(props.children, { closePortal: this.closePortal }), this.node); | ||
this.portal = _reactDom2['default'].unstable_renderSubtreeIntoContainer(this, _react2['default'].cloneElement(props.children, { closePortal: this.closePortal }), this.node); | ||
} | ||
@@ -127,0 +127,0 @@ }, { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1818894
22287