From 6137689a821f1acc6aceb14f4243b117f1a6538b Mon Sep 17 00:00:00 2001 From: Andrew Lamers Date: Sun, 11 Jan 2015 15:52:56 -0600 Subject: [PATCH] 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 --- dist/jquery.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/jquery.autocomplete.js b/dist/jquery.autocomplete.js index 04a9ebab..eb09312c 100644 --- a/dist/jquery.autocomplete.js +++ b/dist/jquery.autocomplete.js @@ -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;