2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-29 00:06:36 +00:00

autoSelectFirst to select child with suggestion class

Only add classs selected to children in the suggestion container that have the suggestion class, incase you want to add a title in the suggestion container before render
This commit is contained in:
Andrew Lamers 2015-01-11 15:52:56 -06:00
parent 4ca8fc3c5b
commit 6137689a82

View File

@ -688,7 +688,7 @@
if (options.autoSelectFirst) {
that.selectedIndex = 0;
container.scrollTop(0);
container.children().first().addClass(classSelected);
container.children("."+that.classes.suggestion).first().addClass(classSelected);
}
that.visible = true;