Skip to content

Commit

Permalink
Revert "minor #44464 [TwigBridge] Provide a default non-empty label o…
Browse files Browse the repository at this point in the history
…n empty options to validate HTML5 (DocFX)"

This reverts commit 96e7ae70dc60e19d8c8557ade16e8d6613549ab1, reversing
changes made to f6fb96a95d5d5a039041a733903df525cfad70f3.
  • Loading branch information
nicolas-grekas committed Oct 24, 2022
1 parent 32f0b7b commit 69ee97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Form/form_div_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
{%- endif -%}
<select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
{%- if placeholder is not none -%}
<option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ placeholder != '' ? (translation_domain is same as(false) ? placeholder : placeholder|trans({}, translation_domain)) : '--' }}</option>
<option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ placeholder != '' ? (translation_domain is same as(false) ? placeholder : placeholder|trans({}, translation_domain)) }}</option>
{%- endif -%}
{%- if preferred_choices|length > 0 -%}
{% set options = preferred_choices %}
Expand Down

0 comments on commit 69ee97a

Please sign in to comment.