Skip to content

[LiveComponent] Select list with no empty choice considered empty #469

Closed
@jcrombez

Description

@jcrombez

When using a FormType in a LiveComponent, if your form contains a select field with no empty option, the browser autoselect the first one by default.
But since the form itself had no value for this field, if the user keep the default value, the component data is never updated with it and the user get a validation error for missing value on a field he sees with a value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug Fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions