File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { TooltipContent } from './TooltipContent';
1818export type FormElementProps = {
1919 id ?: string ;
2020 className ?: string ;
21- htmlFor ?: string ;
21+ controlId ?: string ;
2222 label ?: string ;
2323 required ?: boolean ;
2424 error ?: boolean | string | { message : string } ;
@@ -44,7 +44,7 @@ export const FormElement = createFC<
4444 const {
4545 id,
4646 className,
47- htmlFor ,
47+ controlId ,
4848 cols = 1 ,
4949 elementRef,
5050 label,
@@ -100,7 +100,7 @@ export const FormElement = createFC<
100100 < LabelTag
101101 id = { id }
102102 className = 'slds-form-element__label'
103- { ...( LabelTag === 'label' ? { htmlFor } : { } ) }
103+ { ...( LabelTag === 'label' ? { htmlFor : controlId } : { } ) }
104104 onClick = { id ? undefined : onClickLabel }
105105 >
106106 { required ? (
You can’t perform that action at this time.
0 commit comments