react-hook-form 7.34.0 → 7.34.1
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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.mjs +3 -3
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/errors.d.ts +3 -3
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/form.d.ts +1 -1
- package/dist/types/path/eager.d.ts +3 -3
- package/dist/types/path/eager.d.ts.map +1 -1
- package/dist/types/utils.d.ts +4 -3
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +24 -24
package/dist/index.esm.mjs
CHANGED
@@ -1976,9 +1976,6 @@ function createFormControl(props = {}) {
|
|
1976
1976
|
}
|
1977
1977
|
let hasNoPromiseError = true;
|
1978
1978
|
let fieldValues = cloneObject(_formValues);
|
1979
|
-
_subjects.state.next({
|
1980
|
-
isSubmitting: true,
|
1981
|
-
});
|
1982
1979
|
try {
|
1983
1980
|
if (_options.resolver) {
|
1984
1981
|
const { errors, values } = await _executeSchema();
|
@@ -2002,6 +1999,9 @@ function createFormControl(props = {}) {
|
|
2002
1999
|
_options.shouldFocusError &&
|
2003
2000
|
focusFieldBy(_fields, (key) => get(_formState.errors, key), _names.mount);
|
2004
2001
|
}
|
2002
|
+
_subjects.state.next({
|
2003
|
+
isSubmitting: true,
|
2004
|
+
});
|
2005
2005
|
}
|
2006
2006
|
catch (err) {
|
2007
2007
|
hasNoPromiseError = false;
|