-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
Description
Symfony version(s) affected: 3.4.15
Description
DateTimeType error shown with form theme bootstrap_4_layout.html.twig
is buggy:
Possible Solution
Don't add form-control
class to the div which is parent of the two inputs:
symfony/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig
Line 29 in 6ba1803
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-control is-invalid')|trim}) -%} |
Changed from
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-control is-invalid')|trim}) -%}
to
{% set attr = attr|merge({class: (attr.class|default('') ~ 'is-invalid')|trim}) -%}