]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Store term when selecting an item to prevent another search triggered...
authorjzaefferer <joern.zaefferer@gmail.com>
Tue, 31 Aug 2010 12:20:56 +0000 (14:20 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Tue, 31 Aug 2010 12:20:56 +0000 (14:20 +0200)
ui/jquery.ui.autocomplete.js

index e8796e41e693c3eef3faaf0f594ee920be5482d5..6cdbb4db7b3d22c0f72b935851cfebe29e45f083 100644 (file)
@@ -163,6 +163,7 @@ $.widget( "ui.autocomplete", {
                                        }
 
                                        if ( false !== self._trigger( "select", event, { item: item } ) ) {
+                                               self.term = item.value;
                                                self.element.val( item.value );
                                        }