calidation
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -125,7 +125,13 @@ 'use strict'; | ||
_this.setState({ config: config, fields: fields, errors: errors }); | ||
_this.setState(function (prevState) { | ||
return { | ||
config: _extends({}, prevState.config, config), | ||
fields: _extends({}, prevState.fields, fields), | ||
errors: _extends({}, prevState.errors, errors) | ||
}; | ||
}); | ||
}, _this.unregisterSubComponent = function (fieldsToRemove) { | ||
var keys = Object.keys(fieldsToRemove); | ||
var fields = removeFrom(_this.state.fields)(keys); | ||
var config = removeFrom(_this.state.config)(keys); // TODO: Revalidate errors? | ||
var config = removeFrom(_this.state.config)(keys); | ||
var errors = removeFrom(_this.state.errors)(keys); | ||
@@ -135,3 +141,3 @@ | ||
config: config, | ||
errors: errors, | ||
errors: _this.validate(fields, config), | ||
fields: fields | ||
@@ -138,0 +144,0 @@ }); |
{ | ||
"name": "calidation", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A red hot validation library for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32097
385