react-hook-form 7.19.0-next.0 → 7.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/controller.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/controller.d.ts +10 -10
- package/dist/types/utils.d.ts +0 -3
- package/dist/useController.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -1452,7 +1452,7 @@ function createFormControl(props = {}) {
|
|
1452
1452
|
const field = get(_fields, fieldName);
|
1453
1453
|
return await executeBuildInValidation(field && field._f ? { [fieldName]: field } : field);
|
1454
1454
|
}))).every(Boolean);
|
1455
|
-
_updateValid();
|
1455
|
+
!(!validationResult && !_formState.isValid) && _updateValid();
|
1456
1456
|
}
|
1457
1457
|
else {
|
1458
1458
|
validationResult = isValid = await executeBuildInValidation(_fields);
|