Update main.js

This commit is contained in:
Reinier Guerra 2015-07-10 11:18:44 -04:00
parent 8691866c0d
commit 31e9590172
1 changed files with 1 additions and 4 deletions

View File

@ -373,10 +373,7 @@ Formsy.Form = React.createClass({
// run when the last component has set its state
var onValidationComplete = function () {
allIsValid = inputKeys.every(function (name) {
if (!inputs[name].state._isValid) {
return false;
}
return true;
return inputs[name].state._isValid;
}.bind(this));
this.setState({