5

If you use Google One Tap on a page which has an input or textarea with autofocus, or where you use focus() during the page load, Google One Tap removes the focus from the input field when it displays its login window.

This looks like a Google One Tap bug to me.

Is there a way to avoid it? And to report it?

Óscar
  • 650
  • 1
  • 4
  • 16

1 Answers1

1

Agreed, this really should be configurable behaviour.

I mitigated it with:

window.addEventListener("blur", (_e) => setTimeout(() => window.focus(), 0))
Max
  • 2,760
  • 1
  • 28
  • 47