Fix: Unique originalValue for fields of fieldset (#2218)

Prevent fields from being toggled incorrectly by adding originalValue to childs of fieldset.

Co-authored-by: Mark Schmale <mail@markschmale.de>
This commit is contained in:
Mark
2022-02-04 18:53:13 +01:00
committed by GitHub
parent 152b384e1c
commit 8fb0e9a097

View File

@@ -70,6 +70,9 @@
{% endif %}
{% set field_templates = include_form_field(child.type, field_layout, default_layout) %}
{% if default_layout != 'key' %}
{% set originalValue = child_value %}
{% endif %}
{% include field_templates with { field: child, value: child_value } %}
{% endif %}
{% endfor %}