]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Don't react to menu blurs. Fixes #7742 - Autocomplete: Blur should...
authorScott González <scott.gonzalez@gmail.com>
Wed, 12 Oct 2011 17:38:38 +0000 (13:38 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 12 Oct 2011 17:38:38 +0000 (13:38 -0400)
ui/jquery.ui.autocomplete.js

index 6b06cfe2cebfedda2f19443ad175a2bcd2401e7d..5c5b0334ea5373ed4b90bc4d3979cbdf0d76bd98 100644 (file)
@@ -244,14 +244,6 @@ $.widget( "ui.autocomplete", {
 
                                        self.close( event );
                                        self.selectedItem = item;
-                               },
-                               blur: function( event, ui ) {
-                                       // don't set the value of the text field if it's already correct
-                                       // this prevents moving the cursor unnecessarily
-                                       if ( self.menu.element.is(":visible") &&
-                                               ( self._value() !== self.term ) ) {
-                                               self._value( self.term );
-                                       }
                                }
                        })
                        .zIndex( this.element.zIndex() + 1 )