Skip to content

Commit d44fd94

Browse files
Shoplifternicolas-grekas
authored andcommitted
[TwigBridge][Form] Prevent multiple rendering of form collection prototypes
1 parent 16e8190 commit d44fd94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/views/Form/form_div_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{%- endblock form_widget_compound -%}
2525

2626
{%- block collection_widget -%}
27-
{% if prototype is defined %}
27+
{% if prototype is defined and not prototype.rendered %}
2828
{%- set attr = attr|merge({'data-prototype': form_row(prototype) }) -%}
2929
{% endif %}
3030
{{- block('form_widget') -}}

0 commit comments

Comments
 (0)