Skip to content

Commit

Permalink
Autocomplete: Don't react to menu blurs. Fixes #7742 - Autocomplete: …
Browse files Browse the repository at this point in the history
…Blur should not change the value of the input.
  • Loading branch information
scottgonzalez committed Oct 12, 2011
1 parent 56bcf88 commit ea19645
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ui/jquery.ui.autocomplete.js
Expand Up @@ -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 )
Expand Down

0 comments on commit ea19645

Please sign in to comment.