reactive_forms icon indicating copy to clipboard operation
reactive_forms copied to clipboard

MustMatchValidator marks the matchingControl as touched

Open byungjuJin opened this issue 2 years ago • 1 comments

@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), ]

byungjuJin avatar Dec 29 '22 02:12 byungjuJin

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.

vasilich6107 avatar Feb 02 '23 18:02 vasilich6107