@simplybusiness/mobius 6.3.0 → 6.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 0439088: Fix CTM style snags with ErrorMessage and Checkbox
8
+
9
+ ## 6.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - bc1bf40: Fix questionnaire styles for CTM
14
+
3
15
  ## 6.3.0
4
16
 
5
17
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -2383,6 +2383,7 @@ var CheckboxGroup = (0, import_react33.forwardRef)((props, ref) => {
2383
2383
  if ((0, import_react33.isValidElement)(child)) {
2384
2384
  const isLastItem = child === lastCheckbox;
2385
2385
  const isChildDisabled = isDisabled || lastItemDisables && lastCheckboxIsChecked && !isLastItem;
2386
+ const childProps = child.props;
2386
2387
  return (0, import_react33.cloneElement)(
2387
2388
  child,
2388
2389
  {
@@ -2391,10 +2392,8 @@ var CheckboxGroup = (0, import_react33.forwardRef)((props, ref) => {
2391
2392
  isReadOnly,
2392
2393
  isInvalid,
2393
2394
  isLastItem,
2394
- selected: selected.includes(
2395
- child.props.value
2396
- ),
2397
- onChange: handleChange,
2395
+ selected: selected.includes(childProps.value),
2396
+ onChange: childProps.onChange || handleChange,
2398
2397
  "aria-describedby": describedBy
2399
2398
  }
2400
2399
  );