Skip to content

Commit 8d54755

Browse files
committed
Form field CSS classes should not apply to error message div
1 parent 0012cef commit 8d54755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/crud/form_theme.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% block form_start %}
55
{% if form.vars.errors|length > 0 and 'ea_crud' in form.vars.block_prefixes|default([]) %}
6-
{{ form_errors(form, {attr: { class: 'global-invalid-feedback' }}) }}
6+
{{ form_errors(form, {attr: { errorClass: 'global-invalid-feedback' }}) }}
77
{% endif %}
88

99
{{ parent() }}
@@ -22,7 +22,7 @@
2222
{% block form_errors %}
2323
{% if errors|length > 0 %}
2424
{% for error in errors %}
25-
<div class="{{ attr.class|default('') }} invalid-feedback d-block">{{ error.message }}</div>
25+
<div class="{{ attr.errorClass|default('') }} invalid-feedback d-block">{{ error.message }}</div>
2626
{% endfor %}
2727
{% endif %}
2828
{% endblock form_errors %}

0 commit comments

Comments
 (0)