Skip to content

Apply DefaultColumns to ChoiceField regardless of widget type#7575

Open
lacatoire wants to merge 4 commits intoEasyCorp:5.xfrom
lacatoire:fix/choicefield-default-columns
Open

Apply DefaultColumns to ChoiceField regardless of widget type#7575
lacatoire wants to merge 4 commits intoEasyCorp:5.xfrom
lacatoire:fix/choicefield-default-columns

Conversation

@lacatoire
Copy link
Copy Markdown
Contributor

When a ChoiceField uses the native <select> widget (via renderAsNativeWidget(true)), the default columns were never set because the call to setDefaultColumns() was nested inside the autocomplete branch, leaving the field with an overly wide layout.

Moving the default columns assignment outside that conditional restores the expected column sizing for all widget types, while preserving the existing values for the autocomplete widget.

Fixes #7550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DefaultColumns for ChoiceField only set if its an autocomplete widget

1 participant