@formio/js 5.1.0-dev.6227.3eac551 → 5.1.0-dev.6230.da74478
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/formio.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +1 -1
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/Wizard.js +5 -1
- package/lib/mjs/Wizard.js +5 -1
- package/package.json +1 -1
package/lib/cjs/Wizard.js
CHANGED
@@ -879,7 +879,11 @@ class Wizard extends Webform_1.default {
|
|
879
879
|
var _a;
|
880
880
|
super.onChange(flags, changed, modified, changes);
|
881
881
|
// The onChange loop doesn't need all components for wizards
|
882
|
-
const errors =
|
882
|
+
const errors = (flags === null || flags === void 0 ? void 0 : flags.noValidate)
|
883
|
+
? []
|
884
|
+
: this.submitted
|
885
|
+
? this.validate(this.localData, { dirty: true })
|
886
|
+
: this.validateCurrentPage();
|
883
887
|
if (this.alert) {
|
884
888
|
this.showErrors(errors, true, true);
|
885
889
|
}
|
package/lib/mjs/Wizard.js
CHANGED
@@ -867,7 +867,11 @@ export default class Wizard extends Webform {
|
|
867
867
|
onChange(flags, changed, modified, changes) {
|
868
868
|
super.onChange(flags, changed, modified, changes);
|
869
869
|
// The onChange loop doesn't need all components for wizards
|
870
|
-
const errors =
|
870
|
+
const errors = flags?.noValidate
|
871
|
+
? []
|
872
|
+
: this.submitted
|
873
|
+
? this.validate(this.localData, { dirty: true })
|
874
|
+
: this.validateCurrentPage();
|
871
875
|
if (this.alert) {
|
872
876
|
this.showErrors(errors, true, true);
|
873
877
|
}
|