carbon-react 86.0.0 → 86.0.1
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.
|
@@ -45,7 +45,7 @@ const FlatTableHead = ({
|
|
|
45
45
|
This is only needed when the preceding row has rowSpans applied,
|
|
46
46
|
as in any other use case the rows will all have FlatTableRowHeaders */
|
|
47
47
|
const previousRowHasHeader = !!hasFlatTableRowHeader;
|
|
48
|
-
hasFlatTableRowHeader = child.props.children.find(c => c.type === _flatTableRowHeader.default);
|
|
48
|
+
hasFlatTableRowHeader = _react.default.Children.toArray(child.props.children).find(c => c.type === _flatTableRowHeader.default);
|
|
49
49
|
return /*#__PURE__*/_react.default.cloneElement(child, { ...child.props,
|
|
50
50
|
stickyOffset: rowHeights.slice(0, index).reduce((a, b) => a + b, 0),
|
|
51
51
|
ref: refs[index],
|