       delay = if @state.saving?
         @props.keyboardDelay
       else
-        0
+        @props.immediateDelay
       @saveResourceAfter delay
 
   saveResourceAfter: (delay) ->

    className: 'auto-save'
    resource: null
    keyboardDelay: 10 * 1000
    resetDelay: 2 * 1000

  getInitialState: ->

    delay = if @isTextInput e.target
      @props.keyboardDelay
    else
      @props.immediateDelay
    @saveResourceAfter delay

  handleClick: (e) ->
    if e.target.tagName is 'BUTTON'
      e.persist()
      console?.log 'AutoSave::handleClick', e
      @saveResourceAfter @props.immediateDelay

  handleBlur: (e) ->
    if @isTextInput e.target
