@levshitsvv/formsy-react
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -280,12 +280,9 @@ 'use strict'; | ||
_this.setFormPristine(false); | ||
return _this.validateForm().then(function () { | ||
var model = _this.getModel(); | ||
_this.props.onSubmit(model, _this.resetModel, _this.updateInputsWithError); | ||
if (_this.state.isValid) { | ||
_this.props.onValidSubmit(model, _this.resetModel, _this.updateInputsWithError); | ||
} else { | ||
_this.props.onInvalidSubmit(model, _this.resetModel, _this.updateInputsWithError); | ||
} | ||
}); | ||
var model = _this.getModel(); | ||
_this.props.onSubmit(model, _this.resetModel, _this.updateInputsWithError); | ||
if (_this.state.isValid) { | ||
_this.props.onValidSubmit(model, _this.resetModel, _this.updateInputsWithError); | ||
} else { | ||
_this.props.onInvalidSubmit(model, _this.resetModel, _this.updateInputsWithError); | ||
} | ||
}; | ||
@@ -324,3 +321,3 @@ | ||
externalError: null | ||
}, null); | ||
}, _this.validateForm); | ||
}); | ||
@@ -327,0 +324,0 @@ }; |
{ | ||
"name": "@levshitsvv/formsy-react", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A form input builder and validator for React", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
48869
872