Closed i1yas closed 1 year ago
Is this intended behavior?
import { createForm } from "effector-forms"; const form = createForm({ fields: { name: { init: "" }, email: { init: "", rules: [] } } }); form.fields.name.$errors.watch((v) => console.log("name", v)); // name [] form.fields.email.$errors.watch((v) => console.log("email", v)); // email [] form.fields.name.addError({rule: "my-rule", errorText: "Test"}); // nothing form.fields.email.addError({rule: "my-rule", errorText: "Test"}); // email [Object]
Field without rules ignores addErrors event
addErrors
@i1yas
Fixed, use v1.1.0
Is this intended behavior?
Field without rules ignores
addErrors
event