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