We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a0b687 commit 1ce9862Copy full SHA for 1ce9862
src/librustdoc/html/static/js/main.js
@@ -312,6 +312,8 @@ function preLoadCss(cssUrl) {
312
focus: () => {
313
searchState.showResults();
314
searchState.inputElement().focus();
315
+ // Avoid glitch if something focuses the search button after clicking.
316
+ requestAnimationFrame(() => searchState.inputElement().focus());
317
},
318
// Removes the focus from the search bar.
319
defocus: () => {
0 commit comments