-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
autoFocus does not work on Safari mobile #3501
Comments
@csantos1113 Mobile Safari does not allow "real" focus without user interaction. With "real" focus I mean it sets the focused state so the |
@Rall3n - you mean Safari mobile? because it works perfectly fine on "Safari - Mac" |
Yes, mobile safari. I have edited my answer. |
@Rall3n do we have an official answer from Apple confirming that statement or is this just something you have discovered? |
@karlingen
|
Closing in favor of Apple's decision. Nothing we can do |
@Rall3n Autofocus is not working the first time but when we come back to the same page again, it's opening the keyboard by default. Is there any specific reason behind this? |
facing the same issue |
Same! |
i think caret is not active also . |
Any updates on this? |
autoFocus
does not work on Safari mobile.The input shows the "focus" state, but the caret is not shown, which means that the
<input>
is not actually in focus so the keyboard is not shown.https://codesandbox.io/s/93pz9n63py
Chrome - focused ✔️
Safari - Mac - focused ✔️
Safari - Mobile - Not actually in focus ❗️
The text was updated successfully, but these errors were encountered: