ChrisNZL / Fauxbar

An alternative to Chrome's Omnibox.
https://chrome.google.com/webstore/detail/fauxbar/hibkhcnpkakjniplpfblaoikiggkopka
MIT License
89 stars 13 forks source link

Focus switches between Address Box and Search Box rapidly #47

Open ChrisNZL opened 5 years ago

ChrisNZL commented 5 years ago

Occasionally when opening a new Fauxbar tab, input box focus jumps between the Address Box and Search Box back and forth really quickly. End up having to close the tab.

Haven't been able to reproduce this reliably.

superkev73 commented 5 years ago

I am experiencing something similar. It just started within the last week or two and it is not consistent. After clicking the "New Tab" button in the tab bar, focus should go to the Search Box, but often ends up in the Address Box. I have to manually click on the Search Box to type in it.

This happens maybe 2 out of 5 times I click on New Tab.

ChrisNZL commented 5 years ago

I've added a FocusElement function to wrap around many .focus() calls to try and debug this.

I've pushed the changes to GitHub, but not as a package. Next time I see it, I'll check the console for details. I suspect it's a focus or blur issue with a setTimeout delay triggering things over and over somewhere.

superkev73 commented 5 years ago

Not sure if it was fixed in Fauxbar or Chrome, but it seems to be fine now. When creating a new tab, focus goes to the Fauxbar search box as expected.

fhoshino commented 4 years ago

Not sure if it was fixed in Fauxbar or Chrome, but it seems to be fine now. When creating a new tab, focus goes to the Fauxbar search box as expected.

Still experiencing this occasionally, especially when pressing tab to switch focus from url bar to search box promptly after new tab is opened.