carbon-react 144.7.1 → 144.7.2

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.
@@ -194,8 +194,8 @@ const SelectList = /*#__PURE__*/React.forwardRef(({
194
194
  },
195
195
  "data-index": index
196
196
  };
197
- return /*#__PURE__*/React.cloneElement(child, newProps);
198
- });
197
+ return child !== undefined ? /*#__PURE__*/React.cloneElement(child, newProps) : null;
198
+ }).filter(el => el !== null);
199
199
  const lastOptionIndex = findLastIndex(childrenList, child => /*#__PURE__*/React.isValidElement(child) && (child.type === Option || child.type === OptionRow));
200
200
  const getNextHighlightableItemIndex = useCallback((key, indexOfHighlighted) => {
201
201
  const lastIndex = lastOptionIndex;
@@ -203,8 +203,8 @@ const SelectList = /*#__PURE__*/_react.default.forwardRef(({
203
203
  },
204
204
  "data-index": index
205
205
  };
206
- return /*#__PURE__*/_react.default.cloneElement(child, newProps);
207
- });
206
+ return child !== undefined ? /*#__PURE__*/_react.default.cloneElement(child, newProps) : null;
207
+ }).filter(el => el !== null);
208
208
  const lastOptionIndex = (0, _findLastIndex.default)(childrenList, child => /*#__PURE__*/_react.default.isValidElement(child) && (child.type === _option.default || child.type === _optionRow.default));
209
209
  const getNextHighlightableItemIndex = (0, _react.useCallback)((key, indexOfHighlighted) => {
210
210
  const lastIndex = lastOptionIndex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "144.7.1",
3
+ "version": "144.7.2",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",