Fix input autofocus
Introduce didRender to simplify post-render logic
Merge pull request #20 from sebn/fix-autofocus

Fix autofocus