@trackunit/react-form-wizard 0.1.98 → 0.1.99
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -386,7 +386,7 @@ const FormWizard = ({ lastStepPrimaryActionLabel, isEdit, steps, fullFormSchema,
|
|
|
386
386
|
setStepStates(prev => (Object.assign(Object.assign({}, prev), { [key]: "valid" })));
|
|
387
387
|
}
|
|
388
388
|
//If the step has a default value, we return done, so we can navigate to that step
|
|
389
|
-
if (hasDefaultValue && isEdit) {
|
|
389
|
+
if (hasDefaultValue && isEdit && stepStates[key] === "valid") {
|
|
390
390
|
return "done";
|
|
391
391
|
}
|
|
392
392
|
if (isPastStep) {
|
package/index.esm.js
CHANGED
|
@@ -382,7 +382,7 @@ const FormWizard = ({ lastStepPrimaryActionLabel, isEdit, steps, fullFormSchema,
|
|
|
382
382
|
setStepStates(prev => (Object.assign(Object.assign({}, prev), { [key]: "valid" })));
|
|
383
383
|
}
|
|
384
384
|
//If the step has a default value, we return done, so we can navigate to that step
|
|
385
|
-
if (hasDefaultValue && isEdit) {
|
|
385
|
+
if (hasDefaultValue && isEdit && stepStates[key] === "valid") {
|
|
386
386
|
return "done";
|
|
387
387
|
}
|
|
388
388
|
if (isPastStep) {
|