We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8810e3 commit 351cc1fCopy full SHA for 351cc1f
src/librustdoc/html/static/js/search.js
@@ -5318,8 +5318,9 @@ function registerSearchEvents() {
5318
5319
// @ts-expect-error
5320
searchState.input.addEventListener("blur", () => {
5321
- // @ts-expect-error
5322
- searchState.input.placeholder = searchState.input.origPlaceholder;
+ 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