aport-tools 4.4.9 → 4.4.11
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/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! aport-tools v4.4.
|
1
|
+
/*! aport-tools v4.4.11 | ISC */
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
var React = require('react');
|
@@ -231,15 +231,17 @@ var Stepper = function Stepper(_a) {
|
|
231
231
|
if (Object.keys(errors).length > 0) {
|
232
232
|
console.log("Validation failed at step ".concat(current + 1, ". Cannot proceed to step ").concat(current + 2, "."));
|
233
233
|
seterrorBack(true);
|
234
|
-
return [2 /*return*/]; // Stop
|
234
|
+
return [2 /*return*/]; // Stop if the current step has errors
|
235
235
|
}
|
236
236
|
seterrorBack(false);
|
237
237
|
current += 1; // Move to the next step
|
238
238
|
return [3 /*break*/, 4];
|
239
239
|
case 3:
|
240
|
+
// Moving backward: No validation required
|
240
241
|
current -= 1;
|
241
242
|
_a.label = 4;
|
242
243
|
case 4:
|
244
|
+
// Update the current step visually for each intermediate step
|
243
245
|
onPress === null || onPress === void 0 ? void 0 : onPress(current);
|
244
246
|
return [3 /*break*/, 1];
|
245
247
|
case 5:
|