Gregory
Gregory
There is a bug related to `pristine.addError`, see https://github.com/sha256/Pristine/issues/57 In short, same as in https://github.com/sha256/Pristine/issues/57, if you add `elem.pristine.errors = []` before `addError` than it works
Got stuck on same problem. But there is a (dirty) solution: #### Problem `Pristine` creates an object property on `input` that you pass as `addError` argument. That object has `errors`...
Yeah, it definitely should be fixed "inside" Pristine, not like this, but for now it gets the job done 😄
If you have dependent/dynamic fields in a form, than try using combo of `hidden` attribute with `disabled`. Than, you can pass something like this ```javascript const pristine = new Pristine(form)...