Comparing version 2.2.3 to 2.2.4
@@ -296,2 +296,9 @@ import { useCallback, useState, useEffect, useMemo } from 'react'; | ||
if (!_this.validators || !_this.validators.length) { | ||
// existing error state should be cleared bcs it could be set from server validation via field.setError(err) | ||
_this.setState({ | ||
error: null, | ||
isValid: true, | ||
isValidating: false, | ||
isValidated: true, | ||
}); | ||
return CancelablePromise.resolve(); | ||
@@ -298,0 +305,0 @@ } |
@@ -300,2 +300,9 @@ 'use strict'; | ||
if (!_this.validators || !_this.validators.length) { | ||
// existing error state should be cleared bcs it could be set from server validation via field.setError(err) | ||
_this.setState({ | ||
error: null, | ||
isValid: true, | ||
isValidating: false, | ||
isValidated: true, | ||
}); | ||
return CancelablePromise.resolve(); | ||
@@ -302,0 +309,0 @@ } |
{ | ||
"name": "formular", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"author": "Pavel Ivanov", | ||
@@ -5,0 +5,0 @@ "description": "Build forms in React. Easy-Peasy!", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
100903
1985