From aec607881897be16f3f344cda068487afa1df8c8 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 5 Mar 2025 22:29:14 +0000 Subject: [PATCH] MDL-61823 forms: ensure grouped elements have ID attribute. This is used by the forms implementation for faux-label elements so that when they are clicked on, the first input element of the corresponding group is focused. --- lib/form/templates/element-group.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/form/templates/element-group.mustache b/lib/form/templates/element-group.mustache index 723a24789d7..6aac5cf4b21 100644 --- a/lib/form/templates/element-group.mustache +++ b/lib/form/templates/element-group.mustache @@ -8,7 +8,7 @@ {{/label}} {{$element}} {{#label}} -
+
{{label}}
{{#element.elements}} @@ -19,7 +19,7 @@
{{/label}} {{^label}} -
+
{{#element.elements}} {{{separator}}} -- 2.43.0