From bdeddb323866ceed1928d06f1e27d4ceecde9609 Mon Sep 17 00:00:00 2001 From: Felipe Pupo Rodrigues Date: Fri, 29 Aug 2014 18:10:35 -0300 Subject: [PATCH] Improvement item for work with others plugins --- src/jquery.autocomplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 1bc99cd..2b51d06 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -771,9 +771,9 @@ activeItem, selected = that.classes.selected, container = $(that.suggestionsContainer), - children = container.children(); + children = container.find('.' + that.classes.suggestion); - container.children('.' + selected).removeClass(selected); + container.find('.' + selected).removeClass(selected); that.selectedIndex = index;