imba / imba.io

📄The official website of Imba
http://imba.io
MIT License
80 stars 37 forks source link

Fix needing two clicks to open search in Safari #209

Closed trafnar closed 2 years ago

trafnar commented 3 years ago

Description

In safari, it requires two clicks on the "Search" button in the nav bar in order to open it. I fixed this by adding: imba.commit().then do around some of the code in the show method that shows the search UI. I'm not sure this is the best technique, using a 1ms setTimeout also works.

How Has This Been Tested?

In my browser locally

Types of changes

Checklist:

familyfriendlymikey commented 2 years ago

I'm assuming this got solved one way or another? The search button seems to work fine on Safari on my machine, but I don't want to close this prematurely. Is this still an issue?

trafnar commented 2 years ago

yeah it works for me now too...