diff --git a/src/formGenerator.vue b/src/formGenerator.vue index 5670b492..fd195c7c 100644 --- a/src/formGenerator.vue +++ b/src/formGenerator.vue @@ -207,9 +207,9 @@ div // Child field executed validation onFieldValidated(res, errors, field) { + // Remove old errors for this field this.errors = this.errors.filter(e => e.field != field.schema); - // Remove old errors for this field if (!res && errors && errors.length > 0) { // Add errors with this field errors.forEach((err) => { diff --git a/test/unit/webpack.test.config.js b/test/unit/webpack.test.config.js index 2a6299c2..3396473f 100644 --- a/test/unit/webpack.test.config.js +++ b/test/unit/webpack.test.config.js @@ -68,10 +68,11 @@ module.exports = { autoprefixer: { browsers: ["last 2 versions"] }, - // Comment this, if you would like to debug under `npm run ci` - /*loaders: { + + // Comment out this, if you would like to debug under `npm run ci` + loaders: { js: "isparta" - }*/ + } } };