adopted-ember-addons / ember-changeset

Ember.js flavored changesets, inspired by Ecto
http://bit.ly/ember-changeset-demo
MIT License
431 stars 141 forks source link

Validation succeeds after addError #651

Open ctwoolsey opened 2 years ago

ctwoolsey commented 2 years ago

Version

3.15.0

Test Case

//somewhere in code this.changeset.addError('someField', 'You failed a complex validation');

//in the submit method await this.changeset.validate(); if (this.changeset.isValid) { // }

Expected Behavior

I would expect the changset to fail validation.

Actual Behavior

the error is cleared from changeset.errors and the changeset passes validation.