webview autofocus not working with input

If you are using web­view to load other web­site, and if that web­site has aut­o­fo­cus enabled then aut­o­fo­cus will not work in the web­view by default. You will have to explic­itly enable the autofocus.

One way to do this is to get the web­view ele­ment and then call focus method on it as shown below.

var webview = document.getElementById('webview-foo');

If you want to write more about web­view related issues, let us know by leav­ing your com­ments below.