intelicoreact 1.4.77 → 1.4.78
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.
|
@@ -61,12 +61,14 @@ const TagList = _ref => {
|
|
|
61
61
|
if (typeof shownItemsCount === "number") return shownItemsCount;
|
|
62
62
|
const delta = typeof onEditClick === "function" ? 60 : 32;
|
|
63
63
|
const result = tagList.reduce((result, _ref2, index) => {
|
|
64
|
+
var _itemRef$current, _itemRef$current$getB;
|
|
65
|
+
|
|
64
66
|
let {
|
|
65
67
|
itemRef
|
|
66
68
|
} = _ref2;
|
|
67
69
|
if (result.skip) return result;
|
|
68
70
|
const itemStyle = (itemRef === null || itemRef === void 0 ? void 0 : itemRef.current) && window.getComputedStyle(itemRef.current);
|
|
69
|
-
const itemWidth = [parseInt(
|
|
71
|
+
const itemWidth = [parseInt((_itemRef$current = itemRef.current) === null || _itemRef$current === void 0 ? void 0 : (_itemRef$current$getB = _itemRef$current.getBoundingClientRect()) === null || _itemRef$current$getB === void 0 ? void 0 : _itemRef$current$getB.width, 10), parseInt(itemStyle === null || itemStyle === void 0 ? void 0 : itemStyle.marginLeft, 10), parseInt(itemStyle === null || itemStyle === void 0 ? void 0 : itemStyle.marginRight, 10)].reduce((result, item) => {
|
|
70
72
|
if (!isNaN(item)) result += item;
|
|
71
73
|
return result;
|
|
72
74
|
}, 0);
|