reactjs / react-autocomplete

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

autoHighlight={true} only highlights the first item - if it matches from its beginning #266

Closed silicakes closed 7 years ago

silicakes commented 7 years ago

autoHighlight={true} only highlights the first item if it matches from its beginning

Here's an example for when it doesn't work:

  1. user inputs: "foo"
  2. multiple choices for items containing the word "blah blah food" are shown
  3. first item isn't highlighted

It does work for the following:

  1. user inputs "foo"
  2. multiple choices begin with . "food"
  3. first item is highlighted
CMTegner commented 7 years ago

This is explained in #239.