Skip to content

Whitespace in choice_widget_option #453

@AntoineLemaire

Description

@AntoineLemaire

My form :

$builder->add('grade', \Symfony\Component\Form\Extension\Core\Type\ChoiceType::class, [
    'choices'  => ['1' => 1, '2' => 2, '3' => 3, '4' => 5, '5' => 6],
    'required' => false,
    'label'    => 'app.label',
]);

My twig :

{{ form_start(formTest) }}
    {{ form_widget(formTest.grade) }}
{{ form_end(formTest) }}

Result :

capture du 2016-10-24 18-37-43

Instead of

capture du 2016-10-24 18-39-20

But I don't understand because it's work with that: Yoopies@987e91d, even if choice_widget_options block is under {% spaceless %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions