ngneat / error-tailor

🦄 Making sure your tailor-made error solution is seamless!

Home Page:https://netbasal.com/make-your-angular-forms-error-messages-magically-appear-1e32350b7fa5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error from form group not visible

ZeSzymi opened this issue · comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[x] Support request
[ ] Other... Please describe:

Current behavior

I have form that looks like this:

form = new FormGroup(
    {
      newPassword: new FormControl('', Validators.required),
      confirmPassword: new FormControl('', Validators.required)
    },
    {
      validators: passwordMatchValidator
    }
  );

and all i see are errros Validators.required but not custom validator for form group

Expected behavior

I want to see all errors. Errors from form controls under inputs and error from form above submit button

Minimal reproduction of the problem with instructions

stackBlitz

What is the motivation / use case for changing the behavior?

So basically in my production app i can see the form error don't know why here it's not visible, but the problem is i have no idea how to put the errors from form group above the submit button in the form element

You'll see only one error.