You can set the focus programmatically, but it has to occur inside a
user-initiated event - though the event doesn't need to occur on the
textfield itself.

This will work:  (this is jquery pseudo code, for convenience).

$(button).click(function() {
      $(textfield).focus();
});

This will not work:

$(button).click(function() {'
      setTimeout(function(){ $(textfield).focus(); }, 1);
});

Steve


On Thu, Feb 15, 2018 at 10:36 AM, Philipp <siebesi...@gmail.com> wrote:

> So this seems to be an iOS "issue". It seems to be working as intended
> that a textarea focus can only be triggered by user interaction and not
> programmatically.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Steve Hannah
Web Lite Solutions Corp.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to