mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-12-01 17:23:59 +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:
parent
4ca8fc3c5b
commit
6137689a82
2
dist/jquery.autocomplete.js
vendored
2
dist/jquery.autocomplete.js
vendored
@ -688,7 +688,7 @@
|
|||||||
if (options.autoSelectFirst) {
|
if (options.autoSelectFirst) {
|
||||||
that.selectedIndex = 0;
|
that.selectedIndex = 0;
|
||||||
container.scrollTop(0);
|
container.scrollTop(0);
|
||||||
container.children().first().addClass(classSelected);
|
container.children("."+that.classes.suggestion).first().addClass(classSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
that.visible = true;
|
that.visible = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user