Index: misc/autocomplete.js =================================================================== RCS file: /cvs/drupal/drupal/misc/autocomplete.js,v retrieving revision 1.23 diff -u -9 -p -r1.23 autocomplete.js --- misc/autocomplete.js 4 Jan 2008 11:53:21 -0000 1.23 +++ misc/autocomplete.js 13 Jun 2010 18:34:58 -0000 @@ -107,19 +107,19 @@ Drupal.jsAC.prototype.select = function }; /** * Highlights the next suggestion */ Drupal.jsAC.prototype.selectDown = function () { if (this.selected && this.selected.nextSibling) { this.highlight(this.selected.nextSibling); } - else { + else if (this.popup) { var lis = $('li', this.popup); if (lis.size() > 0) { this.highlight(lis.get(0)); } } }; /** * Highlights the previous suggestion