POS UI Extension TextField focus on load

kenichikun
Shopify Partner
1 0 0

According to the guidelines for TextField component:

 

When a merchant opens a new form, the first text field should be in a focused state.

However, I cannot find a good way to do this, the components do not seem to respect the `autoFocus` attr nor the `focus()` method. This was asked in another question but not answered.

 

How can a POS UI Extension automatically focus on the first TextField component when loaded?

Replies 0 (0)