Fix invalid results showing back
This commit is contained in:
parent
b67701347a
commit
71ff18fb89
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue