Autocomplete: Fixed context for handling async focus in IE; makes change event work properly in IE again.

This commit is contained in:
Scott González 2012-05-10 12:57:41 -04:00
parent a15d40eb5f
commit ab4d8b748d

View File

@ -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 } ) ) {