alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

Encountered two children with the same key, `drop_li_undefined` #133

Closed conor909 closed 6 years ago

conor909 commented 6 years ago

How do I add keys to dropdown children?

alsoscotland commented 6 years ago

@conor909 The keys are generated programatically based on your options 'id' or whatever key name you supply to the optionValueKey prop.

If you are seeing duplicate key errors, I suspect the issue is that you have more than one option with the same value in your options data

conor909 commented 6 years ago

Thanks! Sorry I didn't realise an id was required.