Issue
In the project, the AutoFocus property is set for an input field; however, when the app, whether Progressive Web App (PWA) or native, runs on a mobile device, it fails to function.
Environment
- Progressive Web App (PWA)
- Native Mobile
- Android
- iOS
Cause
The platform does not set the focus on mobile devices by design.
Autofocusing on mobile devices is disabled because, by design, iOS does not allow the keyboard to open without user interaction.
Solution/Workaround
This is the standard platform behavior.
The article below explains how to create a workaround for this issue:
How to set initial autofocus on text widgets for mobile devices
Internal information related
- 217254
- UFC-1181
0 Comments