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 e134ce7 commit b168027Copy full SHA for b168027
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