Skip to content

Commit

Permalink
Autocomplete: Store term when selecting an item to prevent another se…
Browse files Browse the repository at this point in the history
…arch triggered before blur. Fixes #5591 - Home and End keys trigger search
  • Loading branch information
jzaefferer committed Aug 31, 2010
1 parent 90345b3 commit dea2f8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/jquery.ui.autocomplete.js
Expand Up @@ -163,6 +163,7 @@ $.widget( "ui.autocomplete", {
}

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

Expand Down

0 comments on commit dea2f8a

Please sign in to comment.