We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffbb30d commit 2eb1bd6Copy full SHA for 2eb1bd6
packages/shadcn/src/components/ui/autoform/components/BooleanField.tsx
@@ -8,6 +8,7 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
8
label,
9
id,
10
inputProps,
11
+ value
12
}) => (
13
<div className="flex items-center space-x-2">
14
<Checkbox
@@ -22,7 +23,7 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
22
23
};
24
inputProps.onChange(event);
25
}}
- checked={inputProps.value}
26
+ checked={value}
27
/>
28
<Label htmlFor={id}>
29
{label}
0 commit comments