Skip to content

Commit 71ff18f

Browse files
Fix invalid results showing back
1 parent b677013 commit 71ff18f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/html/static/main.js

+4
Original file line numberDiff line numberDiff line change
@@ -1722,6 +1722,10 @@ function getSearchElement() {
17221722
search();
17231723
};
17241724
search_input.onchange = function(e) {
1725+
if (e.target !== document.activeElement) {
1726+
// To prevent doing anything when it's from a blur event.
1727+
return;
1728+
}
17251729
// Do NOT e.preventDefault() here. It will prevent pasting.
17261730
clearTimeout(searchTimeout);
17271731
// zero-timeout necessary here because at the time of event handler execution the

0 commit comments

Comments
 (0)