You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had a bug reported of a user not being able to select an item from the suggestions.
I traced the problem to GeosuggestItem.onClick and Geosuggest.hideSuggests functions. There's a 100ms timeout before the state in Geosuggest component changes to hide the suggestions. If user clicks on a GeosuggestItem, the hideSuggests function is executed at the same time (on blur). If user doesn't release the mouse button to actually trigger a click event, the list of suggestions is gone and nothing has been selected.
What would be the most correct solution to this problem? Increasing the timeout interval in hideSuggests or simply using onMouseDown event in the GeosuggestItem instead?
The text was updated successfully, but these errors were encountered:
We had a bug reported of a user not being able to select an item from the suggestions.
I traced the problem to
GeosuggestItem.onClick
andGeosuggest.hideSuggests
functions. There's a 100ms timeout before the state inGeosuggest
component changes to hide the suggestions. If user clicks on aGeosuggestItem
, thehideSuggests
function is executed at the same time (on blur). If user doesn't release the mouse button to actually trigger a click event, the list of suggestions is gone and nothing has been selected.What would be the most correct solution to this problem? Increasing the timeout interval in
hideSuggests
or simply usingonMouseDown
event in theGeosuggestItem
instead?The text was updated successfully, but these errors were encountered: