]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete combobox demo: Reset the internal term property when an invalid selectio...
authorScott González <scott.gonzalez@gmail.com>
Tue, 30 Nov 2010 22:55:29 +0000 (17:55 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 30 Nov 2010 22:55:29 +0000 (17:55 -0500)
demos/autocomplete/combobox.html

index ab939a0364d7b585ec0c19c44028815e1b32c719..9f92ae108932b6754b327da60ea69cd3d103cf2f 100644 (file)
@@ -67,6 +67,7 @@
                                                                        // remove invalid value, as it didn't match anything
                                                                        $( this ).val( "" );
                                                                        select.val( "" );
+                                                                       input.data( "autocomplete" ).term = "";
                                                                        return false;
                                                                }
                                                        }