From e66790bdc312da51395f38a9b55250d3e49a5657 Mon Sep 17 00:00:00 2001 From: Gareth Trinkwon Date: Mon, 3 Aug 2026 11:54:03 +0100 Subject: [PATCH] fix: Reimplement required attribute on text fields. --- src/Resources/views/Form/accessible-forms.html.twig | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Resources/views/Form/accessible-forms.html.twig b/src/Resources/views/Form/accessible-forms.html.twig index d1ab1c8..b06f7ec 100644 --- a/src/Resources/views/Form/accessible-forms.html.twig +++ b/src/Resources/views/Form/accessible-forms.html.twig @@ -241,14 +241,6 @@ {% endif %} {% endblock birthday_widget %} -{# Remove the required attribute from the element (disable frontend validation) #} -{%- block widget_attributes -%} - id="{{ id }}" name="{{ full_name }}" - {%- if disabled %} disabled="disabled"{% endif -%} - {% set attr = attr|merge({'required': false}) %} - {{ block('attributes') }} -{%- endblock widget_attributes -%} - {# Custom HTML block #} {%- block html_row -%} {{ html }}