jfs-components 0.0.60 → 0.0.61

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.
@@ -84,7 +84,8 @@ function ListGroup({
84
84
  // propagate modes. Both props are interchangeable; when both are provided
85
85
  // the slot items render first, followed by children.
86
86
  const rawItems = [...(listGroupSlot ? (0, _reactUtils.flattenChildren)(listGroupSlot) : []), ...(children ? (0, _reactUtils.flattenChildren)(children) : [])];
87
- const processedSlot = rawItems.length > 0 ? (0, _reactUtils.cloneChildrenWithModes)(rawItems, modes) : null;
87
+ const keyedItems = _react.default.Children.toArray(rawItems);
88
+ const processedSlot = keyedItems.length > 0 ? (0, _reactUtils.cloneChildrenWithModes)(keyedItems, modes) : null;
88
89
 
89
90
  // Use provided accessibilityLabel or fall back to label
90
91
  const defaultAccessibilityLabel = accessibilityLabel || label || "List group";