adopted-ember-addons / adopted-ember-addons/ember-changeset

Validation succeeds after addError

Aperta
#651 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
425
Fork
136
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.