Skip to content

Commit ab4d8b7

Browse files
committed
Autocomplete: Fixed context for handling async focus in IE; makes change event work properly in IE again.
1 parent a15d40e commit ab4d8b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ $.widget( "ui.autocomplete", {
247247
// #6109 - IE triggers two focus events and the second
248248
// is asynchronous, so we need to reset the previous
249249
// term synchronously and asynchronously :-(
250-
setTimeout(function() {
250+
this._delay(function() {
251251
this.previous = previous;
252252
this.selectedItem = item;
253-
}, 1);
253+
});
254254
}
255255

256256
if ( false !== this._trigger( "select", event, { item: item } ) ) {

0 commit comments

Comments
 (0)