From 5da76096cf2b65162006db0ab628928cd03e4fa5 Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass Date: Mon, 6 Mar 2023 15:44:09 +0100 Subject: [PATCH] :bug: Add missing data attributes in select template --- templates/base/components/input/select/select.html.twig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/base/components/input/select/select.html.twig b/templates/base/components/input/select/select.html.twig index 857ae9214..4c039e4df 100644 --- a/templates/base/components/input/select/select.html.twig +++ b/templates/base/components/input/select/select.html.twig @@ -8,6 +8,11 @@ {% if oUIBlock.GetSubmitOnChange() %} onChange="this.form.submit();" {% endif %} {% if oUIBlock.IsMultiple() %} multiple {% endif %} class="{% if oUIBlock.IsHidden() %}ibo-is-hidden{% endif %}{% if oUIBlock.GetAdditionalCSSClassesAsString() %} {{ oUIBlock.GetAdditionalCSSClassesAsString() }}{% endif %}" + {% if oUIBlock.GetDataAttributes() %} + {% for sName, sValue in oUIBlock.GetDataAttributes() %} + data-{{ sName }}="{{ sValue }}" + {% endfor %} + {% endif %} > {% for oSubBlock in oUIBlock.GetSubBlocks() %} {{ render_block(oSubBlock, {aPage: aPage}) }}