diff --git a/misc/autocomplete.js b/misc/autocomplete.js index abdf6342e68..593fb5e0aae 100644 --- a/misc/autocomplete.js +++ b/misc/autocomplete.js @@ -195,6 +195,11 @@ Drupal.jsAC.prototype.populatePopup = function () { * Fills the suggestion popup with any matches received */ Drupal.jsAC.prototype.found = function (matches) { + // If no value in the textfield, do not show the popup. + if (!this.input.value.length) { + return false; + } + // Prepare matches var ul = document.createElement('ul'); var ac = this;