SamSamskies / react-map-gl-geocoder

React wrapper for mapbox-gl-geocoder for use with react-map-gl
MIT License
122 stars 29 forks source link

Wrong item selected in autocomplete on chrome android #64

Open humbkr opened 4 years ago

humbkr commented 4 years ago

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:

humbkr commented 4 years ago

Update: this is an issue with the mapbox-gl-geocoder library, I opened an issue on their side: https://github.com/mapbox/mapbox-gl-geocoder/issues/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 commented 4 years ago

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 😀.