Skip to content
Permalink
Browse files

Autocomplete: Store term when selecting an item to prevent another se…

…arch triggered before blur. Fixes #5591 - Home and End keys trigger search
  • Loading branch information...
jzaefferer committed Aug 31, 2010
1 parent 90345b3 commit dea2f8a7fc1d7c1d8fbf69aa50d7c1f28c3f35b6
Showing with 1 addition and 0 deletions.
  1. +1 −0 ui/jquery.ui.autocomplete.js
@@ -163,6 +163,7 @@ $.widget( "ui.autocomplete", {
}

if ( false !== self._trigger( "select", event, { item: item } ) ) {
self.term = item.value;
self.element.val( item.value );
}

0 comments on commit dea2f8a

Please sign in to comment.
You can’t perform that action at this time.