]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Update selectedItem in the asynchronous focus handling for IE. Fixes...
authorScott González <scott.gonzalez@gmail.com>
Wed, 1 Dec 2010 16:51:16 +0000 (11:51 -0500)
committerScott González <scott.gonzalez@gmail.com>
Wed, 1 Dec 2010 16:51:16 +0000 (11:51 -0500)
ui/jquery.ui.autocomplete.js

index 6aefe87d6ac25978e7777e8c6ff382a42fdc0348..95e22103510e7629909869b0bc1ce542d5dd4702 100644 (file)
@@ -177,6 +177,7 @@ $.widget( "ui.autocomplete", {
                                                // term synchronously and asynchronously :-(
                                                setTimeout(function() {
                                                        self.previous = previous;
+                                                       self.selectedItem = item;
                                                }, 1);
                                        }