]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete (combobox demo): Blur the button on click to avoid a bug.
authorScott González <scott.gonzalez@gmail.com>
Mon, 4 Apr 2011 12:54:09 +0000 (08:54 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 4 Apr 2011 12:55:15 +0000 (08:55 -0400)
Thanks tyron.
(cherry picked from commit 401c91418ce855b706756bdf804346d3a0d95132)

demos/autocomplete/combobox.html

index e4f7ca06f457b9e82252092198d0743f84df7494..5bef5b1afaabc8763c9833678dbbf7167b308067 100644 (file)
                                                        return;
                                                }
 
+                                               // work around a bug (likely same cause as #5265)
+                                               $( this ).blur();
+
                                                // pass empty string as value to search for, displaying all results
                                                input.autocomplete( "search", "" );
                                                input.focus();