Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit dea2f8a7fc1d7c1d8fbf69aa50d7c1f28c3f35b6 1 parent 90345b3
@jzaefferer jzaefferer authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  ui/jquery.ui.autocomplete.js
View
1  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 );
}
Please sign in to comment.
Something went wrong with that request. Please try again.