bikehopper / bikehopper-ui

Friendly bike+transit directions (frontend)
Other
27 stars 2 forks source link

Fix selecting secondary dropdown result on iOS #240

Closed graue closed 1 year ago

graue commented 1 year ago

I noticed that on my iPhone, when I have routes, but I want to go back and select a different autocomplete result (or "Current Location") from one of the dropdowns, it wasn't working. It just exits the search bar.

This is apparently because my solution for #103, the longstanding issue to make it easier to cancel a location edit, never worked on mobile Safari. When editing locations and the search bar is blurred, and nothing has changed, we exit out of the whole search bar on purpose to restore the routes you were looking at. Unless, that is, the search bar was blurred by focusing an autocomplete result.

But in mobile Safari,