calidation
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -74,3 +74,4 @@ 'use strict'; | ||
}, _this.onChange = function (e) { | ||
var fields = _extends({}, _this.state.fields, _defineProperty({}, e.target.name, e.target.value)); | ||
var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value; | ||
var fields = _extends({}, _this.state.fields, _defineProperty({}, e.target.name, value)); | ||
var errors = _this.validate(fields, _this.state.config); | ||
@@ -77,0 +78,0 @@ _this.setState({ errors: errors, fields: fields }); |
{ | ||
"name": "calidation", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"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
38422
403