@trackunit/react-form-wizard 0.1.98 → 0.1.100

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 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-wizard",
3
- "version": "0.1.98",
3
+ "version": "0.1.100",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "engines": {
18
18
  "node": ">=20.x",
19
- "yarn": "3.8.1"
19
+ "yarn": "3.8.2"
20
20
  },
21
21
  "module": "./index.esm.js",
22
22
  "main": "./index.cjs.js"