Skip to content

Commit

Permalink
fix(ui): [checkbox] not updating on label click
Browse files Browse the repository at this point in the history
When using checkbox-field with label clicking on label does not toggle checkbox due to missing "id" attribute

Signed-off-by: Danil Kostromin <[email protected]>
  • Loading branch information
Danil Kostromin committed Feb 9, 2024
1 parent f0da04d commit af7b501
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const CheckboxField = <T extends FieldValues>({
return (
<Checkbox
{...props}
id={field.name}
checked={isChecked}
onCheckedChange={handleChange}
ref={field.ref}
Expand Down

0 comments on commit af7b501

Please sign in to comment.