react-hook-form 7.31.1 → 7.31.2
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/README.md +14 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.mjs +3 -1
- 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/logic/createFormControl.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.mjs
CHANGED
@@ -2067,7 +2067,9 @@ function createFormControl(props = {}) {
|
|
2067
2067
|
? _formState.isDirty
|
2068
2068
|
: !!(keepStateOptions.keepDefaultValues &&
|
2069
2069
|
!deepEqual(formValues, _defaultValues)),
|
2070
|
-
isSubmitted:
|
2070
|
+
isSubmitted: keepStateOptions.keepIsSubmitted
|
2071
|
+
? _formState.isSubmitted
|
2072
|
+
: false,
|
2071
2073
|
dirtyFields: keepStateOptions.keepDirty || keepStateOptions.keepDirtyValues
|
2072
2074
|
? _formState.dirtyFields
|
2073
2075
|
: keepStateOptions.keepDefaultValues && formValues
|