Skip to content
Permalink
Browse files

Fix invalid results showing back

  • Loading branch information
GuillaumeGomez committed Dec 22, 2019
1 parent b677013 commit 71ff18fb8965712cc0a35a9d968cdc41c6561386
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/librustdoc/html/static/main.js
@@ -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

0 comments on commit 71ff18f

Please sign in to comment.
You can’t perform that action at this time.