Skip to content

Commit

Permalink
Fix BooleanField to use value
Browse files Browse the repository at this point in the history
  • Loading branch information
faramos authored Nov 19, 2024
1 parent ffbb30d commit 2eb1bd6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
label,
id,
inputProps,
value
}) => (
<div className="flex items-center space-x-2">
<Checkbox
Expand All @@ -22,7 +23,7 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
};
inputProps.onChange(event);
}}
checked={inputProps.value}
checked={value}
/>
<Label htmlFor={id}>
{label}
Expand Down

0 comments on commit 2eb1bd6

Please sign in to comment.