@formio/js 5.0.0-dev.5825.1d9f891 → 5.0.0-dev.5826.02fa4d9

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.
@@ -1253,7 +1253,7 @@ class Webform extends NestedDataComponent_1.default {
1253
1253
  const errors = shouldValidate
1254
1254
  ? this.validate(value.data, Object.assign(Object.assign({}, flags), { noValidate: false, process: 'change' }))
1255
1255
  : [];
1256
- value.isValid = errors.length === 0;
1256
+ value.isValid = (errors || []).filter(err => !err.fromServer).length === 0;
1257
1257
  this.loading = false;
1258
1258
  if (this.submitted) {
1259
1259
  // show server errors while they are not cleaned/fixed
@@ -1259,7 +1259,7 @@ export default class Webform extends NestedDataComponent {
1259
1259
  process: 'change'
1260
1260
  })
1261
1261
  : [];
1262
- value.isValid = errors.length === 0;
1262
+ value.isValid = (errors || []).filter(err => !err.fromServer).length === 0;
1263
1263
  this.loading = false;
1264
1264
  if (this.submitted) {
1265
1265
  // show server errors while they are not cleaned/fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5825.1d9f891",
3
+ "version": "5.0.0-dev.5826.02fa4d9",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {