Skip to content

Commit

Permalink
Fix shadcn checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
vantezzen committed Feb 4, 2025
1 parent 1dd20b7 commit 63aecaf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
label,
id,
inputProps,
value
}) => (
<div className="flex items-center space-x-2">
<Checkbox
Expand All @@ -23,7 +22,7 @@ export const BooleanField: React.FC<AutoFormFieldProps> = ({
};
inputProps.onChange(event);
}}
checked={value}
checked={inputProps.value}
/>
<Label htmlFor={id}>
{label}
Expand Down

0 comments on commit 63aecaf

Please sign in to comment.