reactjs / react-autocomplete

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

autoHighlight seems to be broken in some instances #344

Open vikas199 opened 6 years ago

vikas199 commented 6 years ago

The prop autoHighlight by default is true. So in my case, I'm setting it to false as I don't want the first result to be highlighted and disabling enter on my first result. This seems to work well. But when I search for a user in the input box and use my arrow down keys to see the results. If I clear the result and again enter a new value in the search box, the first result seems to be highlighted and again the enter key is enabled.

At all times I want the search for the first result not to be highlighted and enter key should always be disabled though if I use my arrow keys or not