Skip to content

[Form] Label of SubmitType cannot be disabled anymore #62580

@ThomasLandauer

Description

@ThomasLandauer

Symfony version(s) affected

7.4.0

Description

After updating from 7.3 to 7.4, disabling the labels of submit buttons doesn't work anymore.

How to reproduce

  1. Add a SubmitType with ['label' => false]
  2. Render it with {{ form_widget(...) }}

=> I get the field's name rendered like this: <button>myButton</button>
Trying to disable the label in Twig with {'label': false} doesn't work either.

Possible Solution

No response

Additional Context

No response

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