title: Autofocus text field on mobile, but no keyboard?
body: <p>As part of my login and registration forms, if there are errors then it will autofocus the related field. Actually, it not as simple as I thought. Let me try to explain!</p>
  
  <p>Basically, on this project, pages are loaded with AJAX. Forms may include an <code>autofocus</code> attribute. This works great, but on mobile it just shows the cursor without bringing up the keyboard, meaning you still have to tap the input to start typing.</p>
  
  <p>Am I missing something, or do I have to double-up the focussing with something like </p>
  
  <pre><code>document.querySelector("[autofocus]").focus();
  // with appropriate verification that the element exists, of coursr
  </code></pre>