Skip to content

Commit

Permalink
Fix: Unique originalValue for fields of fieldset (#2218)
Browse files Browse the repository at this point in the history
Prevent fields from being toggled incorrectly by adding originalValue to childs of fieldset.

Co-authored-by: Mark Schmale <mail@markschmale.de>
  • Loading branch information
m-schmale and Mark Schmale authored Feb 4, 2022
1 parent 152b384 commit 8fb0e9a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 8fb0e9a

Please sign in to comment.