-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Geocoder click to trigger search event #12214
base: main
Are you sure you want to change the base?
Conversation
not executed when user clicks a suggestion
Thank you for the pull request, @Patsnoop! ✅ We can confirm we have a CLA on file for you. |
//This treats clicking a suggestion the same as hitting the enterKey | ||
that._searchCommand(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may technically work but I don't think it's the correct solution. Specifically I'm worried about the circular call of activateSuggestion -> searchCommand -> activateSuggestion
. I think a more accurate change would be to alter the click handler on suggestions to behave the same as hitting enter and calling search
.
@Patsnoop Do you have interest in getting this PR over the finish line? |
@ggetz Good Afternoon, I do plan on finishing this up. I will make some time this weekend to work on it and resubmit. |
Awesome, thanks @Patsnoop! |
Description
I added a command to make clicking on a suggestion and pressing the enter key react the same
Issue number and link
Fixes #6313 - GeocoderViewModel.search command not executed when user clicks a suggestion - #6313
Testing plan
I ran the program locally and tested the changes on my machine
Author checklist
CONTRIBUTORS.md
CHANGES.md
with a short summary of my change