diff --git a/src/components/renderer/FormElementLabelContainer.tsx b/src/components/renderer/FormElementLabelContainer.tsx index 0f9e6984..158f03c8 100644 --- a/src/components/renderer/FormElementLabelContainer.tsx +++ b/src/components/renderer/FormElementLabelContainer.tsx @@ -12,7 +12,7 @@ function FormElementLabelContainer({ required, children, leading, - associateLabelWithInput = true, + associateLabelWithInput = true }: { className: string element: FormTypes.FormElementBase @@ -20,27 +20,22 @@ function FormElementLabelContainer({ required: boolean children: React.ReactNode leading?: React.ReactNode - /** When false, render the title as a span (no htmlFor), e.g. repeatable sets with no single control. */ associateLabelWithInput?: boolean }) { - const labelId = `${id}-label` - const labelClassName = clsx('ob-label', { - 'ob-label__required is-required': required, - }) return (