[BUGFIX] EXT:form - fix clicks on checkbox labels in IE/Edge
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Private / Frontend / Partials / Checkbox.html
index 1faed89..bfb7e82 100644 (file)
@@ -2,7 +2,7 @@
 <formvh:renderRenderable renderable="{element}">
        <f:render partial="Field/Field" arguments="{element: element, doNotShowLabel: 1}" contentAs="elementContent">
                <div class="form-check">
-                       <label class="{element.properties.elementClassAttribute} form-check-label">
+                       <label class="{element.properties.elementClassAttribute} form-check-label" for="{element.uniqueIdentifier}">
                                <f:form.checkbox
                                        property="{element.identifier}"
                                        id="{element.uniqueIdentifier}"