OneZoom / OZtree

OneZoom Tree of Life Explorer
Other
91 stars 20 forks source link

Search bar doesn't bring up keyboard on first tap on iOS #877

Closed jaredkhan closed 6 days ago

jaredkhan commented 2 months ago

The search bar in the explorer and on the home page on onezoom.org both require multiple taps to bring up keyboard on iOS when tested on an iPhone and an iPad.

Expected

Tapping the search bar would focus the text field and bring up the keyboard

Actual

On the first tap, tapping the search bar shows the 'Popular Places' dropdown (which is empty on the home page of onezoom.org) but does not focus the textfield or bring up the keyboard. On the next tap, they focus the text field, bring up the keyboard and hide the popular places.

https://github.com/user-attachments/assets/ae0fe6c5-a4b9-4c4e-8752-759302811146

jaredkhan commented 2 months ago

I suppose this may have been deliberate so that Popular Places can be displayed. Perhaps Popular Places can be shown whilst the text field is in focus but nothing has yet been typed. That's the current situation when you type in a search term, get results, but then delete the term anyway.

davidebbo commented 2 months ago

FWIW, I don't see this on my Android phone (Pixel 6). Tapping the textbox both shows the popular places and brings up the keyboard, at the same time.

jaredkhan commented 2 weeks ago

This one resolves itself with a uikit update to 3.21.6 and above.

The same problem is reproducible outside of the onezoom context as demonstrated here: https://codepen.io/jaredkhan-the-sans/pen/gOVjJyx https://codepen.io/jaredkhan-the-sans/pen/jOgpjOe