Skip to content
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

Navigate to search result on selection from the autocomplete dropdown #123

Merged
merged 1 commit into from
Jul 31, 2022

Conversation

jacquesh
Copy link

This avoids needing to click on "Go" every time after you select the suggestion that you want, which I think is a significant quality-of-life improvement. The "Go" button still works as expected if you don't interact with the autocomplete at all.

Previously it looked like this:

docsgl_auto_before

Now it looks like this:

docsgl_auto_after

It looks like this may have been the original intention and just wasn't working. The function to navigate to the search result was already being called when the user selects an autocomplete option, it was just passing in the text that the user had typed, rather than the text of the selected autocomplete option.

This avoids needing to click on "Go" every time after you select the
suggestion that you want. The "Go" button still works as expected if
you don't interact with the autocomplete at all.
@BSVino BSVino merged commit 0ff26f7 into BSVino:mainline Jul 31, 2022
@BSVino
Copy link
Owner

BSVino commented Jul 31, 2022

Nice one! I never was able to figure this one out.

@BSVino
Copy link
Owner

BSVino commented Jul 31, 2022

By the way exceptional work with the gifs I've never seen a better PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants