Skip to content

fix page reload when enter pressed in docs searchbar #6622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aspizu
Copy link

@aspizu aspizu commented Jul 31, 2025

idk how to test this

@ytmimi
Copy link
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
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.

@aspizu
Copy link
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/

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