Skip to content

Commit

Permalink
Fix autofocus
Browse files Browse the repository at this point in the history
  • Loading branch information
ajimix authored Jun 12, 2017
1 parent e4f2f2f commit 13c7eb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions input.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class exports.Input extends Layer
@input.setAttribute "autocorrect", options.autoCorrect
@input.setAttribute "autocomplete", options.autoComplete
@input.setAttribute "autocapitalize", options.autoCapitalize
if options.autofocus == true
@input.setAttribute "autofocus", true
@input.setAttribute "autofocus", options.autofocus
@input.setAttribute "spellcheck", options.spellCheck
@form = document.createElement "form"
Expand Down

0 comments on commit 13c7eb1

Please sign in to comment.