autoFocus does not work on Safari mobile
See original GitHub issueautoFocus
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 ❗️
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
(Sort of) Fixing autofocus in iOS Safari | by Tommy Brunn
We can't fully emulate the autofocus behavior, but we can get pretty close. Focusing a field does three things: Set focus styles; Scroll...
Read more >Mobile Safari Autofocus text field - Stack Overflow
Mobile Safari has some focus problems. For example, you can't apply focus to a field via an onload event of the body. I'm...
Read more >[SOLVED] Auto-focus text field in Safari - Wisej.com
While Chrome automatically selects the text field, I can't get it to work on Safari. I've tried calling .Focus in the form Load()...
Read more >Autofocus attribute | Can I use... Support tables for ... - CanIUse
Autofocus attribute. - LS. Allows a form field to be immediately focused on page load. Usage % of. all users, all tracked, tracked...
Read more >Input TextField AutoFocus issue | Apple Developer Forums
The problem has been faced on website when get visited from iPhone. Input Text Field is not getting autofocus on iOS devices though...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@karlingen Yes, we have. There was a comment about it in a ticket for WebKit. The comment was created March 2019, and states the following:
Source
Yes, mobile safari. I have edited my answer.