@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.
- package/Changelog.md +2 -1
- 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/Webform.js +1 -1
- package/lib/mjs/Webform.js +1 -1
- package/package.json +1 -1
package/lib/cjs/Webform.js
CHANGED
|
@@ -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
|
package/lib/mjs/Webform.js
CHANGED
|
@@ -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
|