Skip to content

fix page reload when enter pressed in docs searchbar#6622

Closed
aspizu wants to merge 3 commits into
rust-lang:masterfrom
aspizu:master
Closed

fix page reload when enter pressed in docs searchbar#6622
aspizu wants to merge 3 commits into
rust-lang:masterfrom
aspizu:master

Conversation

@aspizu
Copy link
Copy Markdown

@aspizu aspizu commented Jul 31, 2025

idk how to test this

@ytmimi
Copy link
Copy Markdown
Contributor

ytmimi commented Jul 31, 2025

Can you describe the issue in more detail? It's not clear to me what you're fixing here.

@aspizu
Copy link
Copy Markdown
Author

aspizu commented Jul 31, 2025

In the rustfmt documentation page, If you hit enter when the search bar is focused, the page reloads and the input text is gone.

Comment thread docs/index.html Outdated
Comment thread docs/index.html Outdated
@aspizu
Copy link
Copy Markdown
Author

aspizu commented Aug 1, 2025

I've verified that the fix works locally by running the site using python -m http.server inside docs/

@aspizu
Copy link
Copy Markdown
Author

aspizu commented Oct 1, 2025

update?

@ytmimi
Copy link
Copy Markdown
Contributor

ytmimi commented Oct 14, 2025

Sorry we never got this in. Just merged #6702, which implements the same fix

@ytmimi ytmimi closed this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants