Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bootstrap 4 DateTimeType's theme errors #29147

Closed
@lowwa132

Description

@lowwa132

Symfony version(s) affected: 3.4.15

Description
DateTimeType error shown with form theme bootstrap_4_layout.html.twig is buggy:
image

Possible Solution
Don't add form-control class to the div which is parent of the two inputs:
image

{% 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}) -%}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions