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

Multicheckbox updates dirty state only after the modelChange event has finished firing #3302

Closed
snekku-dev opened this issue May 20, 2022 · 1 comment
Labels

Comments

@snekku-dev
Copy link

Description
Bootstrap multicheckbox field updates dirty state only after the modelChange event has fired, unlike other fields

Minimal Reproduction
app:
https://angular-ivy-z1eghs.stackblitz.io

editor:
https://stackblitz.com/edit/angular-ivy-z1eghs?file=src/app/app.component.ts

Your Environment

  • Angular version: 12.1.0
  • Formly version: 5.12.0

Additional context
I noticed this behavior when trying to capture and filter fields in a dirty state inside a modelChange event, all the fields I am using in my form are already dirty when the event fires, while multicheckbox is still pristine and turns dirty only afterwards keeping me from intercepting it as a dirty control during a modelChange event

@snekku-dev snekku-dev added the bug label May 20, 2022
@snekku-dev snekku-dev changed the title Multicheckbox updates dirty state only after the modelChange has finished firing Multicheckbox updates dirty state only after the modelChange event has finished firing May 20, 2022
@aitboudad
Copy link
Member

This issue has been fixed and released as part of v5.12.3 and v6.0.0-beta.2 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