Skip to content

Commit ea19645

Browse files
committed
Autocomplete: Don't react to menu blurs. Fixes #7742 - Autocomplete: Blur should not change the value of the input.
1 parent 56bcf88 commit ea19645

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,6 @@ $.widget( "ui.autocomplete", {
244244

245245
self.close( event );
246246
self.selectedItem = item;
247-
},
248-
blur: function( event, ui ) {
249-
// don't set the value of the text field if it's already correct
250-
// this prevents moving the cursor unnecessarily
251-
if ( self.menu.element.is(":visible") &&
252-
( self._value() !== self.term ) ) {
253-
self._value( self.term );
254-
}
255247
}
256248
})
257249
.zIndex( this.element.zIndex() + 1 )

0 commit comments

Comments
 (0)