We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ba7c72 commit 16bd88eCopy full SHA for 16bd88e
src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
@@ -52,9 +52,9 @@
52
{%- endblock choice_widget_expanded %}
53
54
{% block choice_widget_collapsed -%}
55
- {% if required and empty_value is none and not empty_value_in_choices and not multiple %}
+ {% if required and empty_value is none and not empty_value_in_choices and not multiple -%}
56
{% set required = false %}
57
- {% endif %}
+ {%- endif -%}
58
<select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
59
{% if empty_value is not none -%}
60
<option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ empty_value|trans({}, translation_domain) }}</option>
0 commit comments