We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bf8a9f commit 5191c54Copy full SHA for 5191c54
src/sidebar/search/AddressInputAutocomplete.tsx
@@ -113,11 +113,11 @@ function AutocompleteEntry({
113
}}
114
// using click events for mouse interaction and touch end to select an entry.
115
onClick={() => onSelect()}
116
- // TODO NOW is this onTouchEnd workaround still required?
117
- // onTouchEnd={e => {
118
- // e.preventDefault() // do not forward click to underlying component
119
- // onSelect()
120
- // }}
+ // minor workaround to improve success rate for click even if start and end location on screen are slightly different
+ onTouchEnd={e => {
+ e.preventDefault() // do not forward click to underlying component
+ onSelect()
+ }}
121
>
122
{children}
123
</button>
0 commit comments