Skip to content

Commit 0ac22c1

Browse files
Update FormGroupLayoutLabel.tsx
1 parent f3757b1 commit 0ac22c1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/FormGroupLayoutLabel.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const FormGroupLayoutLabel = <T extends FieldValues>(props: FormGroupLayoutLabel
3131

3232
return (
3333
<>
34-
<Label check={checkboxLayout || switchLayout} for={fieldId} style={{ display: "flex", gap: 1 }} onClick={(e) => e.stopPropagation()}>
34+
<Label check={checkboxLayout || switchLayout} for={fieldId} onClick={(e) => e.stopPropagation()}>
3535
{finalLabel}
3636
{tooltip && (
3737
<svg
@@ -44,7 +44,8 @@ const FormGroupLayoutLabel = <T extends FieldValues>(props: FormGroupLayoutLabel
4444
className="tooltip--icon"
4545
width="24"
4646
height="24"
47-
>
47+
onClick={(e) => e.preventDefault()}
48+
>
4849
<path
4950
strokeLinecap="round"
5051
strokeLinejoin="round"

0 commit comments

Comments
 (0)