@dartech/arsenal-ui 1.3.81 → 1.3.82
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/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -527,7 +527,7 @@ const ControlCheckbox = _a => {
|
|
527
527
|
const _b = useController({
|
528
528
|
name,
|
529
529
|
control,
|
530
|
-
defaultValue: false
|
530
|
+
defaultValue: defaultValue !== null && defaultValue !== void 0 ? defaultValue : false
|
531
531
|
}),
|
532
532
|
_c = _b.field,
|
533
533
|
{
|
@@ -568,7 +568,7 @@ const ControlCheckbox = _a => {
|
|
568
568
|
name: name,
|
569
569
|
inputRef: ref,
|
570
570
|
disabled: disabled,
|
571
|
-
defaultChecked:
|
571
|
+
defaultChecked: checked
|
572
572
|
}, checkboxProps)),
|
573
573
|
label: label
|
574
574
|
}), !hideErrorMessage && (error === null || error === void 0 ? void 0 : error.message) && jsx(FormHelperText, {
|