Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ObjectSelect doesn't select default value if "size" attribute is used #405

Copy link
Copy link
@tad3j

Description

@tad3j
Issue body actions

When I use ObjectSelect in combination with select's "size" (greater than 1), none of the options are selected inside select element when the value is null, even if "display_empty_item" is set to true.

When form validation fails and form is reloaded, the options are selected as they should be, so it looks like the problem only exists when select value is null.

Is this normal behavior?

Btw, if I use "$form->get('fieldset')->get('element')->setValue('');" after binding the empty option is selected as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.