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

(Octane) skipValidate=true in helper does not work

Offen
#292 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
215
Forks
98
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi,
I am on a freshly created octane ember project with ember-changeset and ember-changeset-validations installed.
I am not sure if this is the same as #147 but passing the skipValidate=true option like documented in ember-changeset:

`{{#with (changeset this.model this.AccountValidations skipValidate=true ) as |changesetObj|}}`

does not do anything, it is still automatically validating. Doing it manually in JavaScript does work:
```
constructor() {
super(...arguments);
this.changeset = new Changeset(this.args.model, lookupValidator(AccountValidations), AccountValidations, { skipValidate: true });
}
```
Am I doing it wrong or is it still a bug?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.