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

Geocoder click to trigger search event #12214

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Patsnoop
Copy link

@Patsnoop Patsnoop commented Sep 23, 2024

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

  • I have submitted a Contributor License Agreement
  • I have added my name to CONTRIBUTORS.md
  • I have updated CHANGES.md with a short summary of my change
  • I have added or updated unit tests to ensure consistent code coverage
  • I have updated the inline documentation, and included code examples where relevant
  • I have performed a self-review of my code

Copy link

Thank you for the pull request, @Patsnoop!

✅ We can confirm we have a CLA on file for you.

Comment on lines +127 to +128
//This treats clicking a suggestion the same as hitting the enterKey
that._searchCommand();
Copy link
Contributor

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.

@jjspace jjspace changed the title Issue 6313 Geocoder click to trigger search event Sep 24, 2024
@ggetz
Copy link
Contributor

ggetz commented Oct 29, 2024

@Patsnoop Do you have interest in getting this PR over the finish line?

@Patsnoop
Copy link
Author

@ggetz Good Afternoon, I do plan on finishing this up. I will make some time this weekend to work on it and resubmit.

@ggetz
Copy link
Contributor

ggetz commented Oct 30, 2024

Awesome, thanks @Patsnoop!

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.

GeocoderViewModel.search command not executed when user clicks a suggestion
3 participants