2 Replies Latest reply on Aug 10, 2011 2:05 AM by martinjconnolly

    setFocus problem with viewstack


      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?