diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-10-12 13:38:38 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-10-12 13:38:38 -0400 |
commit | ea19645c20b79aea8afbc95999a51b4923a0b14b (patch) | |
tree | d99a1205aca4de2345025b2dabac9bce73fa48c5 /ui | |
parent | 56bcf885c64bffd626be9db176a44b4854a3bddb (diff) | |
download | jquery-ui-ea19645c20b79aea8afbc95999a51b4923a0b14b.tar.gz jquery-ui-ea19645c20b79aea8afbc95999a51b4923a0b14b.zip |
Autocomplete: Don't react to menu blurs. Fixes #7742 - Autocomplete: Blur should not change the value of the input.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 8 |
1 files changed, 0 insertions, 8 deletions
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 ) |