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 d8810e3 commit 844ae51Copy full SHA for 844ae51
src/librustdoc/html/static/js/search.js
@@ -5317,9 +5317,10 @@ function registerSearchEvents() {
5317
});
5318
5319
// @ts-expect-error
5320
- searchState.input.addEventListener("blur", () => {
5321
- // @ts-expect-error
5322
- searchState.input.placeholder = searchState.input.origPlaceholder;
+ window.searchState.input.addEventListener("blur", () => {
+ if (window.searchState.input) {
+ window.searchState.input.placeholder = window.searchState.origPlaceholder;
5323
+ }
5324
5325
5326
// Push and pop states are used to add search results to the browser
0 commit comments