mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Autocomplete: Fixed context for handling async focus in IE; makes change event work properly in IE again.
This commit is contained in:
parent
a15d40eb5f
commit
ab4d8b748d
4
ui/jquery.ui.autocomplete.js
vendored
4
ui/jquery.ui.autocomplete.js
vendored
@ -247,10 +247,10 @@ $.widget( "ui.autocomplete", {
|
||||
// #6109 - IE triggers two focus events and the second
|
||||
// is asynchronous, so we need to reset the previous
|
||||
// term synchronously and asynchronously :-(
|
||||
setTimeout(function() {
|
||||
this._delay(function() {
|
||||
this.previous = previous;
|
||||
this.selectedItem = item;
|
||||
}, 1);
|
||||
});
|
||||
}
|
||||
|
||||
if ( false !== this._trigger( "select", event, { item: item } ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user