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

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

parent bc82525c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment