[TwigBridge] [Form] Fixed some extra empty spaces
This commit is contained in:
parent
1ba7c72b09
commit
16bd88e61f
@ -52,9 +52,9 @@
|
||||
{%- endblock choice_widget_expanded %}
|
||||
|
||||
{% block choice_widget_collapsed -%}
|
||||
{% 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 -%}
|
||||
{% set required = false %}
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
<select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
|
||||
{% if empty_value is not none -%}
|
||||
<option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ empty_value|trans({}, translation_domain) }}</option>
|
||||
|
Reference in New Issue
Block a user