Skip to content

Empty field even if value stored in database #28

@5ika

Description

@5ika

I'm using last version of Strapi (v4.20.5). When I load a page with the custom field, the field is always empty, even if it has data stored.

The problem I see: There are two renders of MultiSelect component. A first one with value props empty ('') and a second one with the filled value. But as it uses the defaultValue props of React Select to provide the value, the first empty value is kept.

If I replace defaultValue by value in React Select props, field is correctly filled.

Does anyone else have the same problem with the last version of Strapi ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions