<-- Back

No AutoFocus on mobile apps

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

Additional information 

Introduction to Mobile Technologies | Mendix Documentation

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.