ember-changeset icon indicating copy to clipboard operation
ember-changeset copied to clipboard

Validation succeeds after addError

Open ctwoolsey opened this issue 3 years ago • 0 comments

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.

ctwoolsey avatar Jun 24 '22 13:06 ctwoolsey