diff options
Diffstat (limited to 'misc/autocomplete.js')
-rw-r--r-- | misc/autocomplete.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js index abdf6342e..593fb5e0a 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; |