From: Scott González Date: Wed, 12 Oct 2011 17:38:38 +0000 (-0400) Subject: Autocomplete: Don't react to menu blurs. Fixes #7742 - Autocomplete: Blur should... X-Git-Tag: 1.9m7~198 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ea19645c20b79aea8afbc95999a51b4923a0b14b;p=jquery-ui.git Autocomplete: Don't react to menu blurs. Fixes #7742 - Autocomplete: Blur should not change the value of the input. --- diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 6b06cfe2c..5c5b0334e 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -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 )