Skip to content

Hitting enter sometimes goes to the last search entry the mouse was over in the docs #24044

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

Closed
gsingh93 opened this issue Apr 4, 2015 · 0 comments · Fixed by #24055
Closed
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@gsingh93
Copy link
Contributor

gsingh93 commented Apr 4, 2015

Here's an image of what some search results in the docs look like:
selection_007

Notice the color on the first entry. This means this entry is selected. I never clicked on this entry, but simply because this is the last entry my mouse was over, it was selected. This can happen to any entry in the search results. Now if I go back to the search bar and search anything, when I hit enter, instead of searching for my query, I go to the page of whatever previous search entry was selected.

This is probably my biggest annoyance with the docs right now. Until I sat down today and figured out exactly what was going on, I just dealt with the docs randomly deciding to go to random pages I never clicked on.

@gsingh93 gsingh93 changed the title Hitting enter sometimes goes to the last page the mouse was over in the docs Hitting enter sometimes goes to the last search entry the mouse was over in the docs Apr 4, 2015
estsauver added a commit to estsauver/rust that referenced this issue Apr 4, 2015
If a result is highlighted, when the search changes that state should no
longer be highlighted. Fixes rust-lang#24044

cc @steveklabnik
@steveklabnik steveklabnik added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Apr 4, 2015
bors added a commit that referenced this issue Apr 5, 2015
If a result is highlighted, when the search changes that state should no
longer be highlighted. Fixes #24044

cc @steveklabnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants