42-px / effector-forms

106 stars 16 forks source link

resetErrors not trigger formValidated #9

Closed Kvodnon closed 9 months ago

Kvodnon commented 2 years ago

Hi!

Case: one of fields must be filled, both empy fields trigger correct error. But when one of field filled, errors reset visual, but not fact. What could it be? Architecrute screenshot attached.

image

Kvodnon commented 2 years ago

formValidated not triggered after resetErrors

aanation commented 1 year ago

@Kvodnon

I don't understand your case. Why do you manually call resetErrors on submit? Why do you manually check the value in the filter? Just call submit and subscribe to the formValidated event. The formValidated event will be called if your form is correct and there are no errors