Skip to content

Commit a379fe8

Browse files
committed
fix high deps tests
1 parent fce76a0 commit a379fe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/views/Form/form_div_layout.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,10 @@
314314

315315
{%- block widget_attributes -%}
316316
id="{{ id }}" name="{{ full_name }}"
317-
{%- if read_only and attr.readonly is not defined %} readonly="readonly"{% endif -%}
317+
{%- if read_only %} readonly="readonly"{% endif -%}
318318
{%- if disabled %} disabled="disabled"{% endif -%}
319319
{%- if required %} required="required"{% endif -%}
320-
{%- for attrname, attrvalue in attr -%}
320+
{%- for attrname, attrvalue in attr if 'readonly' != attrname or not read_only -%}
321321
{{- " " -}}
322322
{%- if attrname in ['placeholder', 'title'] -%}
323323
{{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}"

0 commit comments

Comments
 (0)