Skip to content
Permalink
Browse files

Autocomplete: Fixed context for handling async focus in IE; makes cha…

…nge event work properly in IE again.
  • Loading branch information
scottgonzalez committed May 10, 2012
1 parent a15d40e commit ab4d8b748d26df79f7e9cf32a5f80d07c05f790b
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.autocomplete.js
@@ -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 } ) ) {

0 comments on commit ab4d8b7

Please sign in to comment.
You can’t perform that action at this time.