I have a viewstack with 4 forms (wrapped in NavigatorContent). I have a button elsewhere in the app - when the user clicks it I want to surface the first of the 4 forms, and then focus to land on the first textinput in that first form (I do some other stuff as well e.g. clearing the contents of other textinputs). If that form is already visible it works fine and the focus is set correctly. But if the form is not visible, then the clearing up works but focus is not transferred to the first textinput. I tried adding a setFocus() on the NavigatorContent first but that achieved nothing. Can anyone suggest a solution please?
Have you tried creationComplete event on the first textInput? onCreationComplete, then set focus?
Hi, nope, tried that but that didn't work either. The focus gets set only after the app is initialised.
Update! setting the focus on the show event of the NavigatorContent works.
Message was edited by: martinjconnolly