Skip to content

Instantly share code, notes, and snippets.

@tabula-rasa
Created February 23, 2018 21:37
Show Gist options
  • Save tabula-rasa/df2616d71c4617a763793d4a5810230a to your computer and use it in GitHub Desktop.
Save tabula-rasa/df2616d71c4617a763793d4a5810230a to your computer and use it in GitHub Desktop.
Mithril JS input focus
m('input', { oncreate: (el) => { el.dom.focus() }})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment