Skip to content

Commit 16e1344

Browse files
author
Tomas Kirda
authored
Merge pull request #677 from anton-github/master
Fix keyboard navigation of the grouped list
2 parents 50a7d9b + b91bc43 commit 16e1344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.autocomplete.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@
859859
}
860860

861861
if (that.selectedIndex === 0) {
862-
$(that.suggestionsContainer).children().first().removeClass(that.classes.selected);
862+
$(that.suggestionsContainer).children('.' + that.classes.suggestion).first().removeClass(that.classes.selected);
863863
that.selectedIndex = -1;
864864
that.ignoreValueChange = false;
865865
that.el.val(that.currentValue);

0 commit comments

Comments
 (0)