Skip to content

Wrong item selected in autocomplete on chrome android #64

@humbkr

Description

@humbkr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions