intelicoreact 1.2.33 → 1.2.34
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.
|
@@ -116,11 +116,6 @@ function useMobileModal(_ref) {
|
|
|
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
117
|
var computedModalHeight = modalRef !== null && modalRef !== void 0 && modalRef.current ? modalHeight + parseFloat((modalStyle === null || modalStyle === void 0 ? void 0 : modalStyle.marginTop) || 0) : 0;
|
|
118
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
|
-
});
|
|
124
119
|
|
|
125
120
|
if (modalMobileContainerRef !== null && modalMobileContainerRef !== void 0 && modalMobileContainerRef.current) {
|
|
126
121
|
if (computedModalHeight <= windowHeight) {
|
|
@@ -144,9 +139,6 @@ function useMobileModal(_ref) {
|
|
|
144
139
|
|
|
145
140
|
if (modalHeight !== newModalHeight) {
|
|
146
141
|
setModalHeight(newModalHeight);
|
|
147
|
-
console.log({
|
|
148
|
-
modalHeight: modalHeight
|
|
149
|
-
});
|
|
150
142
|
}
|
|
151
143
|
}
|
|
152
144
|
});
|