@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 +12 -0
- package/dist/cjs/index.js +3 -4
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/index.js +3 -4
- package/package.json +1 -1
- package/src/components/Checkbox/Checkbox.css +1 -1
- package/src/components/Checkbox/CheckboxGroup.tsx +7 -4
- package/src/components/ErrorMessage/ErrorMessage.css +1 -1
package/CHANGELOG.md
CHANGED
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
|
-
|
|
2396
|
-
),
|
|
2397
|
-
onChange: handleChange,
|
|
2395
|
+
selected: selected.includes(childProps.value),
|
|
2396
|
+
onChange: childProps.onChange || handleChange,
|
|
2398
2397
|
"aria-describedby": describedBy
|
|
2399
2398
|
}
|
|
2400
2399
|
);
|