Skip to content

Commit 63aecaf

Browse files
committed
Fix shadcn checkbox
1 parent 1dd20b7 commit 63aecaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/shadcn/src/components/ui/autoform/components/BooleanField.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
88
label,
99
id,
1010
inputProps,
11-
value
1211
}) => (
1312
<div className="flex items-center space-x-2">
1413
<Checkbox
@@ -23,7 +22,7 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
2322
};
2423
inputProps.onChange(event);
2524
}}
26-
checked={value}
25+
checked={inputProps.value}
2726
/>
2827
<Label htmlFor={id}>
2928
{label}

0 commit comments

Comments
 (0)