Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formGroup.statusChange has different last value as in formGroup.status #2658

Closed
Greegko opened this issue Jan 12, 2021 · 1 comment
Closed
Labels

Comments

@Greegko
Copy link

Greegko commented Jan 12, 2021

Maybe it fits more like a question, wasn't sure about this. I have a problem as I handle these form in different components, and to get the form value and status I send back via output. But for some reason, when hiding and showing the component's field doesn't trigger the status changes into form.statusChange stream.

Created a repo which can reproduce this behaviour.

https://stackblitz.com/edit/angular-dpnk9z-t9xsez

The group.statusChange last emitted value doesn't syncronized with group.status actual value.
Have a field where there is a validator and when displayed this field and the validation is wrong, I am still getting the "VALID" status as the last result.

  • Angular version: tested with 10 & 11
  • Formly version: 5.10.11
@aitboudad
Copy link
Member

This issue has been fixed and released as part of v5.10.13 release.

Please let us know, in case you are still encountering a similar issue/problem.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants