moroshko / react-autowhatever

Accessible rendering layer for Autosuggest and Autocomplete components

Home Page:http://react-autowhatever.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React warning

ZachBray opened this issue · comments

Thank you for the great library. I'm using it via react-autosuggest.

I've noticed that I get a warning when I have multiple selections suggestions:

Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `Autowhatever`. See https://fb.me/react-warning-keys for more information

It looks like renderItemsList(...) isn't adding a key to the items it returns.

@ZachBray What do you mean by multiple selections? (Do you mean multiple sections?)

What version of React are you using?

Could you share a Codepen that demonstrates the issue?

I'm using React v0.14.7

This should be fixed in 3.2.3.