Google Password Manager autofill, affecting focus()

PressRex profile image
by PressRex
Google Password Manager autofill, affecting focus()

I have a login component which takes a users username, and then sends a One Time Pin when the username is verified to their phone. The component then dynamically updates and shows the OTP input screen.

I'm using a timeout to apply focus on the OTP input field which works absolutely no problem.

setTimeout(function() { $('.login__form--input-first').focus() }, 1000);

However, when I use Android Chrome and I select a username from the Google Password Manager prompt, it displays the OTP input screen, but the focus doesn't work. Another, however, when I tap on the screen anywhere else, the cursor flashes in the input field for a split second and then disappears as if it was there, but it was just hidden or something.

Anyone ever seen anything like this?

Source: View source

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More