intelicoreact 1.2.58 → 1.2.60
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.
|
@@ -618,7 +618,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
618
618
|
}, [isOpen, isMobile, dropdownListRef === null || dropdownListRef === void 0 ? void 0 : dropdownListRef.current, dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr5 = dropdownListRef.current) === null || _dropdownListRef$curr5 === void 0 ? void 0 : _dropdownListRef$curr5.scrollHeight, dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr6 = dropdownListRef.current) === null || _dropdownListRef$curr6 === void 0 ? void 0 : _dropdownListRef$curr6.clientHeight]);
|
|
619
619
|
(0, _react.useEffect)(function () {
|
|
620
620
|
var setScrollTopValue = function setScrollTopValue(e) {
|
|
621
|
-
setScrollTop(e.target.scrollTop);
|
|
621
|
+
setScrollTop(parseInt(e.target.scrollTop));
|
|
622
622
|
};
|
|
623
623
|
|
|
624
624
|
if (isOpen && isMobile && dropdownListRef !== null && dropdownListRef !== void 0 && dropdownListRef.current) {
|
|
@@ -637,7 +637,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
637
637
|
if (dropdownListRef !== null && dropdownListRef !== void 0 && dropdownListRef.current) {
|
|
638
638
|
var _dropdownListRef$curr9, _dropdownListRef$curr10;
|
|
639
639
|
|
|
640
|
-
setScrollHeight((dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr9 = dropdownListRef.current) === null || _dropdownListRef$curr9 === void 0 ? void 0 : _dropdownListRef$curr9.scrollHeight) - (dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr10 = dropdownListRef.current) === null || _dropdownListRef$curr10 === void 0 ? void 0 : _dropdownListRef$curr10.clientHeight));
|
|
640
|
+
setScrollHeight(parseInt((dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr9 = dropdownListRef.current) === null || _dropdownListRef$curr9 === void 0 ? void 0 : _dropdownListRef$curr9.scrollHeight) - (dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr10 = dropdownListRef.current) === null || _dropdownListRef$curr10 === void 0 ? void 0 : _dropdownListRef$curr10.clientHeight)));
|
|
641
641
|
}
|
|
642
642
|
}, [scrollTop, dropdownListRef === null || dropdownListRef === void 0 ? void 0 : dropdownListRef.current]);
|
|
643
643
|
var postfixText = selectedLabel && ((_filteredOptions$find = filteredOptions.find(function (option) {
|
|
@@ -542,7 +542,7 @@ var TagsDropdown = function TagsDropdown(_ref) {
|
|
|
542
542
|
}, [isOpen, isMobile, dropdownListRef === null || dropdownListRef === void 0 ? void 0 : dropdownListRef.current, dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr5 = dropdownListRef.current) === null || _dropdownListRef$curr5 === void 0 ? void 0 : _dropdownListRef$curr5.scrollHeight, dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr6 = dropdownListRef.current) === null || _dropdownListRef$curr6 === void 0 ? void 0 : _dropdownListRef$curr6.clientHeight]);
|
|
543
543
|
(0, _react.useEffect)(function () {
|
|
544
544
|
var setScrollTopValue = function setScrollTopValue(e) {
|
|
545
|
-
setScrollTop(e.target.scrollTop);
|
|
545
|
+
setScrollTop(parseInt(e.target.scrollTop));
|
|
546
546
|
};
|
|
547
547
|
|
|
548
548
|
if (isOpen && isMobile && dropdownListRef !== null && dropdownListRef !== void 0 && dropdownListRef.current) {
|
|
@@ -561,7 +561,7 @@ var TagsDropdown = function TagsDropdown(_ref) {
|
|
|
561
561
|
if (dropdownListRef !== null && dropdownListRef !== void 0 && dropdownListRef.current) {
|
|
562
562
|
var _dropdownListRef$curr9, _dropdownListRef$curr10;
|
|
563
563
|
|
|
564
|
-
setScrollHeight((dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr9 = dropdownListRef.current) === null || _dropdownListRef$curr9 === void 0 ? void 0 : _dropdownListRef$curr9.scrollHeight) - (dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr10 = dropdownListRef.current) === null || _dropdownListRef$curr10 === void 0 ? void 0 : _dropdownListRef$curr10.clientHeight));
|
|
564
|
+
setScrollHeight(parseInt((dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr9 = dropdownListRef.current) === null || _dropdownListRef$curr9 === void 0 ? void 0 : _dropdownListRef$curr9.scrollHeight) - (dropdownListRef === null || dropdownListRef === void 0 ? void 0 : (_dropdownListRef$curr10 = dropdownListRef.current) === null || _dropdownListRef$curr10 === void 0 ? void 0 : _dropdownListRef$curr10.clientHeight)));
|
|
565
565
|
}
|
|
566
566
|
}, [scrollTop, dropdownListRef === null || dropdownListRef === void 0 ? void 0 : dropdownListRef.current]);
|
|
567
567
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -102,7 +102,7 @@ function useMobileModal(_ref) {
|
|
|
102
102
|
el.addEventListener('scroll', function () {
|
|
103
103
|
setScrollTop(function (scrollTop) {
|
|
104
104
|
if (scrollTop !== el.scrollTop) setScrollTopPrev(scrollTop);
|
|
105
|
-
return el.scrollTop;
|
|
105
|
+
return parseInt(el.scrollTop);
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
}
|