Skip to content
Permalink
Browse files

Autocomplete: Don't react to menu blurs. Fixes #7742 - Autocomplete: …

…Blur should not change the value of the input.
  • Loading branch information...
scottgonzalez committed Oct 12, 2011
1 parent 56bcf88 commit ea19645c20b79aea8afbc95999a51b4923a0b14b
Showing with 0 additions and 8 deletions.
  1. +0 −8 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 )

0 comments on commit ea19645

Please sign in to comment.
You can’t perform that action at this time.