@blerp/design 1.4.2 → 1.4.3

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.
@@ -244,6 +244,11 @@ const BaseModal = /*#__PURE__*/React__default["default"].forwardRef((_ref2, ref)
244
244
 
245
245
  if (disablePortal) {
246
246
  return modalContent;
247
+ } // SSR check - don't use createPortal on the server
248
+
249
+
250
+ if (typeof window === 'undefined') {
251
+ return null;
247
252
  }
248
253
 
249
254
  return /*#__PURE__*/ReactDOM.createPortal(modalContent, container || document.body);
@@ -233,6 +233,11 @@ const BaseModal = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
233
233
 
234
234
  if (disablePortal) {
235
235
  return modalContent;
236
+ } // SSR check - don't use createPortal on the server
237
+
238
+
239
+ if (typeof window === 'undefined') {
240
+ return null;
236
241
  }
237
242
 
238
243
  return /*#__PURE__*/createPortal(modalContent, container || document.body);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blerp/design",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Blerp UI",
5
5
  "main": "dist/esm/index.js",
6
6
  "scripts": {