From: Scott González Date: Wed, 1 Dec 2010 16:51:16 +0000 (-0500) Subject: Autocomplete: Update selectedItem in the asynchronous focus handling for IE. Fixes... X-Git-Tag: 1.8.7~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eac910f3157af42c7fcd2230aaff8508974ecc9a;p=jquery-ui.git Autocomplete: Update selectedItem in the asynchronous focus handling for IE. Fixes #6709 - Autocomplete: Null ui.item on change event in IE8. --- diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 6aefe87d6..95e221035 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -177,6 +177,7 @@ $.widget( "ui.autocomplete", { // term synchronously and asynchronously :-( setTimeout(function() { self.previous = previous; + self.selectedItem = item; }, 1); }