Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation succeeds after addError #651

Open
ctwoolsey opened this issue Jun 24, 2022 · 0 comments
Open

Validation succeeds after addError #651

ctwoolsey opened this issue Jun 24, 2022 · 0 comments

Comments

@ctwoolsey
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant