Commit 3074b97f authored by drumm's avatar drumm
Browse files

#86384 by AjK and Steve McKenzie. Catch backspace in autocomplete fields.

parent bc82525c
......@@ -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;
......
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