]> 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:54:09 +0000 (08:54 -0400)
Thanks tyron.

demos/autocomplete/combobox.html

index 56e4aa0216bf570f1eeabb287aa0b319a1c793e5..ded809e1e9a7e41846c6e36f04ffb3c2ee0e01da 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();