We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent effe5ef commit fbb7834Copy full SHA for fbb7834
1 file changed
src/lib/FormGroupLayoutLabel.tsx
@@ -30,8 +30,8 @@ const FormGroupLayoutLabel = <T extends FieldValues>(props: FormGroupLayoutLabel
30
const checkboxLayout = layout === "checkbox";
31
32
return (
33
- <div onClick={(e) => e.stopPropagation()}>
34
- <Label check={checkboxLayout || switchLayout} for={fieldId} style={{ display: "flex", gap: 1 }}>
+ <>
+ <Label check={checkboxLayout || switchLayout} for={fieldId} style={{ display: "flex", gap: 1 }} onClick={(e) => e.stopPropagation()}>
35
{finalLabel}
36
{tooltip && (
37
<svg
@@ -58,7 +58,7 @@ const FormGroupLayoutLabel = <T extends FieldValues>(props: FormGroupLayoutLabel
58
{tooltip}
59
</UncontrolledTooltip>
60
)}
61
- </div>
+ </>
62
);
63
};
64
0 commit comments