laktek / jQuery-Smart-Auto-Complete

AutoComplete plugin with smart defaults and flexibility to customize
http://laktek.com/2011/03/03/introducing-jquery-smart-autocomplete/
248 stars 34 forks source link

Fixed issue with down arrow navigation #8

Closed ryanhorn closed 13 years ago

ryanhorn commented 13 years ago

Using the down arrow for navigating the autocomplete list after selecting an item will always select the second item first. This happens for all autocomplete enabled inputs with a drop down on the example page (http://laktek.github.com/jQuery-Smart-Auto-Complete/demo/index.html). Steps for reproducing:

In the input, enter text that will generate at least two results Hit the down arrow once, the first result is selected as expected Hit enter to select the item Delete the text from the input In the same input, enter the same text that was entered before to generate at least two results Hit the down arrow once, the second result will be selected