Skip to content

Commit 2eb1bd6

Browse files
authored
Fix BooleanField to use value
1 parent ffbb30d commit 2eb1bd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
88
label,
99
id,
1010
inputProps,
11+
value
1112
}) => (
1213
<div className="flex items-center space-x-2">
1314
<Checkbox
@@ -22,7 +23,7 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
2223
};
2324
inputProps.onChange(event);
2425
}}
25-
checked={inputProps.value}
26+
checked={value}
2627
/>
2728
<Label htmlFor={id}>
2829
{label}

0 commit comments

Comments
 (0)