@zextras/carbonio-design-system 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.2.2](https://github.com/Zextras/carbonio-design-system/compare/v0.2.1...v0.2.2) (2022-04-12)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * custom modal crash on opening ([658516a](https://github.com/Zextras/carbonio-design-system/commit/658516aab7ba09c3265d863db0f638eccb015772))
11
+
5
12
  ### [0.2.1](https://github.com/Zextras/carbonio-design-system/compare/v0.2.0...v0.2.1) (2022-04-12)
6
13
 
7
14
 
@@ -37518,7 +37518,7 @@ var CustomModal = /*#__PURE__*/React__default["default"].forwardRef(function Mod
37518
37518
  var defaultOverflowY = windowObj.document.body.style.overflowY;
37519
37519
  var defaultPaddingRight = windowObj.document.body.style.paddingRight;
37520
37520
  windowObj.document.body.style.overflowY = 'hidden';
37521
- isBodyOverflowing(modalRef) && (windowObj.document.body.style.paddingRight = "".concat(getScrollbarSize(), "px"));
37521
+ isBodyOverflowing(modalRef, windowObj) && (windowObj.document.body.style.paddingRight = "".concat(getScrollbarSize(), "px"));
37522
37522
  return function () {
37523
37523
  windowObj.document.body.style.overflowY = defaultOverflowY;
37524
37524
  windowObj.document.body.style.paddingRight = defaultPaddingRight;
@@ -37528,7 +37528,7 @@ var CustomModal = /*#__PURE__*/React__default["default"].forwardRef(function Mod
37528
37528
  return function () {
37529
37529
  return undefined;
37530
37530
  };
37531
- }, [modalRef, open, windowObj.document.body.style]);
37531
+ }, [modalRef, open, windowObj]);
37532
37532
  React.useEffect(function () {
37533
37533
  var focusedElement = windowObj.document.activeElement;
37534
37534
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zextras/carbonio-design-system",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "An awesome UI for Zextras Projects.",
5
5
  "main": "dist/zapp-ui.bundle.js",
6
6
  "scripts": {