#86384 by AjK and Steve McKenzie. Catch backspace in autocomplete fields.
parent
bc82525c95
commit
3074b97f43
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue