@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.
@@ -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, _b;
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 (editRow.alerts && (!this.component.rowDrafts || ((_a = this.root) === null || _a === void 0 ? void 0 : _a.submitted))) {
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 (editRow.alerts && (!this.component.rowDrafts || this.root?.submitted)) {
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5935.c16c9d9",
3
+ "version": "5.0.0-dev.5938.c885e75",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {