mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Autocomplete: Fix for #5154 - cleanup
This commit is contained in:
parent
4cea3290a1
commit
84f7c90fc8
3
ui/jquery.ui.autocomplete.js
vendored
3
ui/jquery.ui.autocomplete.js
vendored
@ -257,15 +257,12 @@ $.widget( "ui.autocomplete", {
|
||||
},
|
||||
|
||||
_move: function( direction, event ) {
|
||||
console.log("move " + direction + " with event " + event)
|
||||
if ( !this.menu.element.is(":visible") ) {
|
||||
console.log("move, menu not visible")
|
||||
this.search( null, event );
|
||||
return;
|
||||
}
|
||||
if ( this.menu.first() && /^previous/.test(direction) ||
|
||||
this.menu.last() && /^next/.test(direction) ) {
|
||||
console.log("move, first or last")
|
||||
this.element.val( this.term );
|
||||
this.menu.deactivate();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user