Skip to content

Commit ad1b5e7

Browse files
Update src/scripts/FormElement.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5e10106 commit ad1b5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/FormElement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const FormElement = createFC<
100100
<LabelTag
101101
id={id}
102102
className='slds-form-element__label'
103-
htmlFor={htmlFor}
103+
{...(LabelTag === 'label' ? { htmlFor } : {})}
104104
onClick={id ? undefined : onClickLabel}
105105
>
106106
{required ? (

0 commit comments

Comments
 (0)