mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Autocomplete: Don't react to menu blurs. Fixes #7742 - Autocomplete: Blur should not change the value of the input.
This commit is contained in:
parent
56bcf885c6
commit
ea19645c20
8
ui/jquery.ui.autocomplete.js
vendored
8
ui/jquery.ui.autocomplete.js
vendored
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user