             @close()
     ).on('submit')
 
+    close: ->
+        @set 'error', null
+        @_super.apply @, arguments
+
 `export default ModalForm`
    tagName: 'form'
    attributeBindings: ['in-async']

    'in-async': undefined

    'close-if-error': true

    error: undefined

    ###*
    # Handle form submit event.

        @sendAction 'on-submit', @, e
        if e.promise and "function" is typeof e.promise.then
            @set 'in-async', 'true'
            e.promise.then((r) =>
                @set 'in-async', null
                @close()
            , (err) =>
                @set 'in-async', null
                @set 'error', err
                @close() if @get('close-if-error')
            )
