Skip to content

Commit

Permalink
Fix(web-twig): Enable rendering Symfony Forms fields inside FieldGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
dlouhak committed Feb 14, 2024
1 parent 84ef862 commit 9f94302
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{# API #}
{%- set props = props | default([]) -%}
{%- set _children = block('content') is defined ? block('content') : null -%}
{%- set _helperText = props.helperText | default(null) -%}
{%- set _id = props.id -%}
{%- set _isDisabled = props.isDisabled | default(false) -%}
Expand Down Expand Up @@ -64,9 +65,9 @@
</div>
{% endif %}
{% endif %}
{% if block('content') is not empty %}
{% if _children is not empty %}
<div class="{{ _fieldsClassName }}">
{% block content %}{% endblock %}
{{- _children | raw -}}
</div>
{% endif %}
<HelperText
Expand Down

0 comments on commit 9f94302

Please sign in to comment.