reactive_forms
reactive_forms copied to clipboard
MustMatchValidator marks the matchingControl as touched
@joanpablo Hi, I got same problem with #199
Now I am using V14.1.0
It works as before. Can you check it, please?
validators: [ Validators.mustMatch('password', 'passwordConfirmation', markAsDirty: false), ]
https://github.com/joanpablo/reactive_forms/blob/master/lib/src/validators/must_match_validator.dart#L31
This line was specifically made to display the errors.
If you have issues with mustMatch
you can copy this code and modify if for your needs.
Despite the validators exit in this package they does not cover all possible needs but the basic only. They also serve as examples so copy and modify for your specific needs.