@codecademy/gamut
71.0.071.0.1-alpha.c9e50f.0
dist/ConnectedForm/ConnectedInputs/ConnectedNestedCheckboxes/index.js~
dist/ConnectedForm/ConnectedInputs/ConnectedNestedCheckboxes/index.jsModified+4−2
Index: package/dist/ConnectedForm/ConnectedInputs/ConnectedNestedCheckboxes/index.js
===================================================================
--- package/dist/ConnectedForm/ConnectedInputs/ConnectedNestedCheckboxes/index.js
+++ package/dist/ConnectedForm/ConnectedInputs/ConnectedNestedCheckboxes/index.js
@@ -9,9 +9,10 @@
name,
options,
disabled,
onUpdate,
- spacing
+ spacing,
+ customValidations
}) => {
const {
isDisabled,
control,
@@ -20,9 +21,10 @@
getValues,
setValue
} = useField({
name,
- disabled
+ disabled,
+ customValidations
});
const defaultValue = getValues()[name];
const flatOptions = useMemo(() => flattenOptions(options), [options]);
const [hasExpandedInitially, setHasExpandedInitially] = useState(false);