@4i/modal-manager 1.1.20 → 1.1.21
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -179,6 +179,8 @@ var ModalProvider = function (_a) {
|
|
179
179
|
var refReducer = function (index, value) {
|
180
180
|
modalRef.current[index] = value;
|
181
181
|
};
|
182
|
+
if (typeof window === "undefined")
|
183
|
+
return null;
|
182
184
|
var body = document.body;
|
183
185
|
(0, react_dom_1.createPortal)(react_1.default.createElement(react_1.default.Fragment, null, data.length !== 0 &&
|
184
186
|
data.map(function (item, i) {
|