1
Fork 0

Fix invalid results showing back

This commit is contained in:
Guillaume Gomez 2019-12-22 15:42:29 +01:00
parent b67701347a
commit 71ff18fb89

View file

@ -1722,6 +1722,10 @@ function getSearchElement() {
search();
};
search_input.onchange = function(e) {
if (e.target !== document.activeElement) {
// To prevent doing anything when it's from a blur event.
return;
}
// Do NOT e.preventDefault() here. It will prevent pasting.
clearTimeout(searchTimeout);
// zero-timeout necessary here because at the time of event handler execution the