Comparing version 2.0.7 to 2.0.8
@@ -339,4 +339,4 @@ "use strict"; | ||
var dirty = isDirty(name); | ||
var error = errors[name]; | ||
var showError = !!error && (submitted || dirty); | ||
var errorMessage = errors[name]; | ||
var showError = !!errorMessage && (submitted || dirty); | ||
@@ -358,3 +358,3 @@ var onBlur = function onBlur(e) { | ||
showError: showError, | ||
error: error, | ||
errorMessage: errorMessage, | ||
onBlur: onBlur, | ||
@@ -361,0 +361,0 @@ submit: submit, |
{ | ||
"name": "formact", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Context for React form components with validation", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -462,4 +462,4 @@ // @flow | ||
const dirty = isDirty(name) | ||
const error = errors[name] | ||
const showError = !!error && (submitted || dirty) | ||
const errorMessage = errors[name] | ||
const showError = !!errorMessage && (submitted || dirty) | ||
@@ -478,3 +478,3 @@ const onBlur = (e: Object) => { | ||
showError, | ||
error, | ||
errorMessage, | ||
onBlur, | ||
@@ -481,0 +481,0 @@ submit, |
Sorry, the diff of this file is not supported yet
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
35056