graphhopper/graphhopper-maps

autocomplete selection broken for touch devices on non-mobile view

karussell opened this issue · 0 comments

The mobile input with autocomplete works flawlessly but for touch devices with bigger screens or on a mobile phone in landscape mode we have a different handling (some onBlur behaviour) to hide the box when clicking outside of the box and with this autocomplete box it is not possible to select one of the suggested items for touch devices.

This was introduced in #357 with a simpler AutocompleteEntry but something is not right there as #354 does not have this problem it seems.

The problem seems that onSelect is not trigger from onClick. Adding onTouchEnd seems to help, but why is then onClick not working?