remix-validated-form 5.0.1 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -1147,7 +1147,7 @@ var useHasActiveFormSubmit = ({
1147
1147
  fetcher
1148
1148
  }) => {
1149
1149
  let navigation = useNavigation();
1150
- const hasActiveSubmission = fetcher ? fetcher.state === "submitting" : navigation.state === "submitting";
1150
+ const hasActiveSubmission = fetcher ? fetcher.state === "submitting" : navigation.state === "submitting" || navigation.state === "loading";
1151
1151
  return hasActiveSubmission;
1152
1152
  };
1153
1153
  var useFieldTouched = (field, { formId }) => {