rustdoc: Properly restore search input placeholder
This commit is contained in:
parent
d8810e3e2d
commit
351cc1f5b7
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue