diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2010-02-10 15:05:35 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2010-02-10 15:05:35 +0000 |
commit | 3875cd33b739b9908fe51eaa4f0b4b939e700e10 (patch) | |
tree | eb4b406b2637dda54a62199b8808ca3735c2df0b /ui/jquery.ui.autocomplete.js | |
parent | 5eeaa658ba1a37d3ced10a5435a0b302a922c199 (diff) | |
download | jquery-ui-3875cd33b739b9908fe51eaa4f0b4b939e700e10.tar.gz jquery-ui-3875cd33b739b9908fe51eaa4f0b4b939e700e10.zip |
Autocomplete: Fix for #5154
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 78ac1f8b5..45abb17b9 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -240,6 +240,7 @@ $.widget( "ui.autocomplete", { $.each( items, function( index, item ) { self._renderItem( ul, item ); }); + this.menu.deactivate(); this.menu.refresh(); this.menu.element.show(); if ( ul.width() <= this.element.width() ) { @@ -255,12 +256,15 @@ $.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; |