Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/librustdoc/html/static/js/search.js
Copy link
Member Author

@fmease fmease Feb 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clarify, the minimal fix would be:

  searchState.input.addEventListener("blur", () => {
-     searchState.input.placeholder = searchState.input.origPlaceholder;
+     searchState.input.placeholder = searchState.origPlaceholder;
  });

Original file line number Diff line number Diff line change
Expand Up @@ -5318,8 +5318,9 @@ function registerSearchEvents() {

// @ts-expect-error
searchState.input.addEventListener("blur", () => {
// @ts-expect-error
searchState.input.placeholder = searchState.input.origPlaceholder;
if (window.searchState.input) {
window.searchState.input.placeholder = window.searchState.origPlaceholder;
}
});

// Push and pop states are used to add search results to the browser
Expand Down
Loading