reactjs / react-autocomplete

WAI-ARIA compliant React autocomplete (combobox) component
MIT License
2.17k stars 532 forks source link

Autocomplete only highlighting first result #290

Closed quachsimon closed 6 years ago

quachsimon commented 6 years ago

When I attempt to filter out the item names the filter only seems to work for the first item.

I have tried with something as simple as ['apple', 'banana', 'pear'] each with a name key and same result. It does not filter out like in the demo.

It highlights the first result but, does not filter out the results.

I am using React 16 if that helps?

quachsimon commented 6 years ago

It wasn't immediately obvious to me but, turns out you have to implement shouldItemRender prop which is in the online editor link