Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login input not focussing properly #41

Open
Soleone opened this issue Apr 26, 2020 · 0 comments
Open

Login input not focussing properly #41

Soleone opened this issue Apr 26, 2020 · 0 comments

Comments

@Soleone
Copy link

Soleone commented Apr 26, 2020

This issue has been going on for a few releases now, at least all of the 12.x releases:

Problem

When Scatter launches and asks for the password the input field is not properly focussed.

That means I can't open 1password and select the Scatter password and then select the "paste into" option to insert the password right in the Scatter app. I also can't manually copy the password and then Alt-Tab to Scatter and press CMD (or Ctrl) + V to paste the password, it goes into the void.

Always one extra click that needs to happen after loading has fully completed.

Debugging

I finally got ScatterDesktop and Bridge set up locally and working with each other and I just can't figure out why it's not working as expected. It does seem to call focus() properly in the Input component, but it doesn't actually make the caret show up.

I even tried using setTimeout to delay the focus() call by a few seconds and it doesn't work.

Interestingly though, when I open a chrome console and call focus() on the right element and then tab back to ScatterDesktop the input is then properly focussed and the caret shows up.

It leads me to believe that either there is a weird issue with Electron, or some other weird loading and refocussing going on by some Scatter code that prevents the focus from properly showing the caret after load.

Not focussed properly:
image

Manually focussed afterwards by clicking the input:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant