gumdrops icon indicating copy to clipboard operation
gumdrops copied to clipboard

Select component requires `customValue` prop

Open edrpls opened this issue 4 years ago • 1 comments

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]}>

edrpls avatar Feb 03 '21 23:02 edrpls

This is fixed on feature/improved-gumdrops, possibly to be released as 2.0.0 in the future.

edrpls avatar Feb 28 '21 08:02 edrpls