Comparing version 4.8.4 to 4.8.5
@@ -12,6 +12,11 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
function Portal() { | ||
function Portal(props) { | ||
_classCallCheck(this, Portal); | ||
return _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments)); | ||
var _this = _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props)); | ||
if (props.getContainer) { | ||
_this._container = props.getContainer(); | ||
} | ||
return _this; | ||
} | ||
@@ -22,3 +27,5 @@ | ||
value: function componentDidMount() { | ||
this.createContainer(); | ||
if (!this._container) { | ||
this.createContainer(); | ||
} | ||
} | ||
@@ -25,0 +32,0 @@ }, { |
@@ -40,5 +40,11 @@ 'use strict'; | ||
function Portal() { | ||
function Portal(props) { | ||
(0, _classCallCheck3['default'])(this, Portal); | ||
return (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments)); | ||
var _this = (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props)); | ||
if (props.getContainer) { | ||
_this._container = props.getContainer(); | ||
} | ||
return _this; | ||
} | ||
@@ -49,3 +55,5 @@ | ||
value: function componentDidMount() { | ||
this.createContainer(); | ||
if (!this._container) { | ||
this.createContainer(); | ||
} | ||
} | ||
@@ -52,0 +60,0 @@ }, { |
{ | ||
"name": "rc-util", | ||
"version": "4.8.4", | ||
"version": "4.8.5", | ||
"description": "Common Utils For React Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
90913
2901