Skip to content
Snippets Groups Projects
Commit d5e9aad5 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

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

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