Skip to content

Select component requires customValue prop #102

Description

@edrpls

According to the documentation, the customValue prop on the Select component should be optional and used only for customization. However, it is required to set it, or React will complain about elements in an array without a key prop.

The component needs something like:

const valueKey = customValue || 'value';
/* ... */
 <option key={o[valueKey]} value={o[valueKey]}>

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions