Skip to content

Commit 3dd9add

Browse files
author
Tomas Kirda
committed
Fix for incorrect highlighting of first item, if using groupBy. Fixes devbridge#326
1 parent 451c5ef commit 3dd9add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@
694694
if (options.autoSelectFirst) {
695695
that.selectedIndex = 0;
696696
container.scrollTop(0);
697-
container.children().first().addClass(classSelected);
697+
container.children('.' + className).first().addClass(classSelected);
698698
}
699699

700700
that.visible = true;

0 commit comments

Comments
 (0)