mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Autocomplete: Store term when selecting an item to prevent another search triggered before blur. Fixes #5591 - Home and End keys trigger search
This commit is contained in:
parent
90345b30d8
commit
dea2f8a7fc
1
ui/jquery.ui.autocomplete.js
vendored
1
ui/jquery.ui.autocomplete.js
vendored
@ -163,6 +163,7 @@ $.widget( "ui.autocomplete", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( false !== self._trigger( "select", event, { item: item } ) ) {
|
if ( false !== self._trigger( "select", event, { item: item } ) ) {
|
||||||
|
self.term = item.value;
|
||||||
self.element.val( item.value );
|
self.element.val( item.value );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user