8000 [TwigBridge][Form] Prevent multiple rendering of form collection prot… · symfony/symfony@ffd2722 · GitHub
[go: up one dir, main page]

Skip to content

Commit ffd2722

Browse files
Shoplifternicolas-grekas
authored andcommitted
[TwigBridge][Form] Prevent multiple rendering of form collection prototypes
1 parent 68b823f commit ffd2722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/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)
0