intelicoreact 1.2.32 → 1.2.33

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.
@@ -114,13 +114,16 @@ function useMobileModal(_ref) {
114
114
  (0, _react.useLayoutEffect)(function () {
115
115
  if (isOpen) {
116
116
  var modalStyle = modalRef !== null && modalRef !== void 0 && modalRef.current ? (modalRef === null || modalRef === void 0 ? void 0 : modalRef.current.currentStyle) || window.getComputedStyle(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current) : {};
117
-
118
- var _modalHeight = modalRef !== null && modalRef !== void 0 && modalRef.current ? _modalHeight + parseFloat((modalStyle === null || modalStyle === void 0 ? void 0 : modalStyle.marginTop) || 0) : 0;
119
-
117
+ var computedModalHeight = modalRef !== null && modalRef !== void 0 && modalRef.current ? modalHeight + parseFloat((modalStyle === null || modalStyle === void 0 ? void 0 : modalStyle.marginTop) || 0) : 0;
120
118
  var windowHeight = document.documentElement.clientHeight || window.screen.availHeight || window.screen.height;
119
+ console.log({
120
+ modalMobileContainerRef: modalMobileContainerRef,
121
+ computedModalHeight: computedModalHeight,
122
+ windowHeight: windowHeight
123
+ });
121
124
 
122
125
  if (modalMobileContainerRef !== null && modalMobileContainerRef !== void 0 && modalMobileContainerRef.current) {
123
- if (_modalHeight <= windowHeight) {
126
+ if (computedModalHeight <= windowHeight) {
124
127
  modalMobileContainerRef.current.style.display = 'flex';
125
128
  modalMobileContainerRef.current.style.alignItems = 'flex-end';
126
129
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.2.32",
3
+ "version": "1.2.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [