react-frame-component 5.2.6 → 5.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/lib/Frame.js +4 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/lib/Frame.js
CHANGED
|
@@ -151,6 +151,10 @@ var Frame = exports.Frame = function (_Component) {
|
|
|
151
151
|
|
|
152
152
|
var mountTarget = this.getMountTarget();
|
|
153
153
|
|
|
154
|
+
if (!mountTarget) {
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
|
|
154
158
|
return [_reactDom2.default.createPortal(this.props.head, this.getDoc().head), _reactDom2.default.createPortal(contents, mountTarget)];
|
|
155
159
|
}
|
|
156
160
|
}, {
|