2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-09 14:50:57 +00:00

Fix for incorrect highlighting of first item, if using groupBy. Fixes #326

This commit is contained in:
Tomas Kirda 2015-03-13 11:11:37 -05:00
parent 451c5efe95
commit 3dd9add2ab

View File

@ -694,7 +694,7 @@
if (options.autoSelectFirst) {
that.selectedIndex = 0;
container.scrollTop(0);
container.children().first().addClass(classSelected);
container.children('.' + className).first().addClass(classSelected);
}
that.visible = true;