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

Wrong item selected in autocomplete on chrome android #64

Open
humbkr opened this issue May 1, 2020 · 2 comments
Open

Wrong item selected in autocomplete on chrome android #64

humbkr opened this issue May 1, 2020 · 2 comments

Comments

@humbkr
Copy link

humbkr commented May 1, 2020

Hello,

I encountered a weird bug on Android on the autocomplete: when you scroll in your page then click on an item, the selected item that is put in the field is not the one you pressed on, but the one that was originally at this position before scrolling.

Sandbox to reproduce the bug: https://codesandbox.io/s/react-map-gl-geocoder-v2-example-1yhuc

Exact steps:

  • start typing in the field
  • the autocomplete displays the suggestions
  • keep in mind the position of the first result on your screen then scroll a bit to position another result in the same location
  • press on the other result
  • the first result is selected, not the one you pressed
@humbkr
Copy link
Author

humbkr commented May 1, 2020

Update: this is an issue with the mapbox-gl-geocoder library, I opened an issue on their side: mapbox/mapbox-gl-geocoder#357

On a side note, the mapbox-gl-geocoder dependency is several versions behind, and I have other bugs that may have been fixed on later versions, @SamSamskies do you plan to upgrade anytime soon?

@SamSamskies
Copy link
Owner

Hi @humbkr, thanks for reporting the issue. Unfortunately, I'm not sure when I'll get around to upgrading. I'll gladly accept PRs though 😀.

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

No branches or pull requests

2 participants