Commit d5e9aad5 authored by drumm's avatar drumm
Browse files

#107611 by Steven. Fix bug triggered by pressing enter while results are being fetched.

parent 6653e499
...@@ -213,12 +213,14 @@ Drupal.jsAC.prototype.found = function (matches) { ...@@ -213,12 +213,14 @@ Drupal.jsAC.prototype.found = function (matches) {
} }
// Show popup with matches, if any // Show popup with matches, if any
if (ul.childNodes.length > 0) { if (this.popup) {
$(this.popup).empty().append(ul).show(); if (ul.childNodes.length > 0) {
} $(this.popup).empty().append(ul).show();
else { }
$(this.popup).css({visibility: 'hidden'}); else {
this.hidePopup(); $(this.popup).css({visibility: 'hidden'});
this.hidePopup();
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment