I recently learned of an issue on the iPhone (but not iPad) when using FKA -- if you tab from an `<input>` to a `<select>`, the menu opens automatically, but when you choose an option or ESC to close it, focus resets to the top of the page, creating a keyboard trap.

Here's the fix: https://codepen.io/TPG/pen/LYozjOX

#javascript #ios #iphone #fka

@siblingpastry there’s an ESC key on iPhones?

@PetterOfCats This is for users who rely on an external keyboard (so they can only navigate forward and backward, they can't just tap anywhere).

Although the focus reset still happens with touch interaction and Voice Control, it doesn't matter so much. However this solution fixes that as well.