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.
@@ -2067,7 +2067,9 @@ function createFormControl(props = {}) {
2067
2067
  ? _formState.isDirty
2068
2068
  : !!(keepStateOptions.keepDefaultValues &&
2069
2069
  !deepEqual(formValues, _defaultValues)),
2070
- isSubmitted: !!keepStateOptions.keepIsSubmitted,
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