@formio/js 5.0.0-dev.5935.c16c9d9 → 5.0.0-dev.5938.c885e75
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.builder.css +4 -0
- package/dist/formio.builder.min.css +1 -1
- package/dist/formio.form.css +4 -0
- package/dist/formio.form.js +1 -1
- package/dist/formio.form.min.css +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.css +4 -0
- package/dist/formio.full.js +1 -1
- package/dist/formio.full.min.css +1 -1
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/components/editgrid/EditGrid.js +2 -5
- package/lib/mjs/components/editgrid/EditGrid.js +1 -4
- package/package.json +1 -1
|
@@ -987,7 +987,7 @@ class EditGridComponent extends NestedArrayComponent_1.default {
|
|
|
987
987
|
dirty;
|
|
988
988
|
}
|
|
989
989
|
validateRow(editRow, dirty, forceSilentCheck, fromSubmission) {
|
|
990
|
-
var _a
|
|
990
|
+
var _a;
|
|
991
991
|
editRow.errors = [];
|
|
992
992
|
if (this.shouldValidateRow(editRow, dirty, fromSubmission)) {
|
|
993
993
|
const silentCheck = (this.component.rowDrafts && !this.shouldValidateDraft(editRow)) || forceSilentCheck;
|
|
@@ -1037,12 +1037,9 @@ class EditGridComponent extends NestedArrayComponent_1.default {
|
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
if (
|
|
1040
|
+
if (!this.component.rowDrafts || ((_a = this.root) === null || _a === void 0 ? void 0 : _a.submitted)) {
|
|
1041
1041
|
this.showRowErrorAlerts(editRow, editRow.errors);
|
|
1042
1042
|
}
|
|
1043
|
-
else if ((_b = editRow.errors) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1044
|
-
this.setCustomValidity(editRow.errors, dirty);
|
|
1045
|
-
}
|
|
1046
1043
|
return editRow.errors;
|
|
1047
1044
|
}
|
|
1048
1045
|
showRowErrorAlerts(editRow, errors) {
|
|
@@ -1026,12 +1026,9 @@ export default class EditGridComponent extends NestedArrayComponent {
|
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
if (
|
|
1029
|
+
if (!this.component.rowDrafts || this.root?.submitted) {
|
|
1030
1030
|
this.showRowErrorAlerts(editRow, editRow.errors);
|
|
1031
1031
|
}
|
|
1032
|
-
else if (editRow.errors?.length) {
|
|
1033
|
-
this.setCustomValidity(editRow.errors, dirty);
|
|
1034
|
-
}
|
|
1035
1032
|
return editRow.errors;
|
|
1036
1033
|
}
|
|
1037
1034
|
showRowErrorAlerts(editRow, errors) {
|