lib/assets/javascripts/tao/form/shared/element/base.coffee in tao_form-0.1.7 vs lib/assets/javascripts/tao/form/shared/element/base.coffee in tao_form-0.1.8
- old
+ new
@@ -4,9 +4,10 @@
@attribute 'successMessage'
_connected: ->
@_bind()
+ @jq.find('.input-field[autofocus]').focus()
_bind: ->
@on 'ajax:beforeSend', '> form', (e) =>
@_clearErrors()
@trigger 'tao:beforeSubmit'