Merge pull request #2835 from betagouv/debounce_autocomplete

Autocomplete.js: debounce input
This commit is contained in:
gregoirenovel 2018-10-15 23:31:08 +02:00 committed by GitHub
commit aabfe28a71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,8 @@ function source(url) {
const openTag = `<div class="aa-suggestion ${mineClass}">`;
return autocomplete.escapeHighlightedString(label, openTag, '</div>');
}
}
},
debounce: 300
};
}