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 74b93eb commit b7b4665Copy full SHA for b7b4665
Resources/views/Form/bootstrap_4_layout.html.twig
@@ -103,6 +103,10 @@
103
{% if type is not defined or type != 'hidden' %}
104
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control' ~ (type|default('') == 'file' ? '-file' : ''))|trim}) -%}
105
{% endif %}
106
+ {%- if type is defined and (type == 'range' or type == 'color') %}
107
+ {# Attribute "required" is not supported #}
108
+ {%- set required = false -%}
109
+ {% endif %}
110
{{- parent() -}}
111
{%- endblock form_widget_simple %}
112
0 commit comments