Skip to content

DefaultColumns for ChoiceField only set if its an autocomplete widget #7550

@naturefund-falk

Description

@naturefund-falk

Describe the bug
If you do not have a ChoiceField with Autocomplete, then the setDefaultColumn is not called in the Choiceconfigurator. As DefaultColumn is not set inside ChoiceField::new this leaves you with an extra wide select box.

To Reproduce
EasyAdmin 5, a ChoiceField with renderExpanded(false) and renderAsNativeWidget(true), resulting in select input.

Expected outcome: Field should be initialized with a defaultColumns value as all the other fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions