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

refresh render of controls in second tab #3409

Closed
coderdags opened this issue Aug 5, 2022 · 1 comment · Fixed by #3507
Closed

refresh render of controls in second tab #3409

coderdags opened this issue Aug 5, 2022 · 1 comment · Fixed by #3507
Labels

Comments

@coderdags
Copy link

I combined the idea from the tabs sample https://formly.dev/examples/advanced/tabs and repeating section sample https://formly.dev/examples/advanced/repeating-section

where I've got two tabs and each tabs uses the same array for the fields. when i'm in the first tab and clicked on the add another investment button it adds a new section to enter some data and the model gets updated with a new object. when i go to the second tab which is the same fieldgroup as in the first tab, it's still have 1 section instead of 2. if i click the add another investment button in the second tab it will display 3 sections.

here's a sample code https://angular-bz1ogy-dqc1uy.stackblitz.io/

is there anyway to trigger the second tab to update the sections when a new object gets added to the array from the 1st tab.

@aitboudad
Copy link
Member

This issue has been fixed and released as part of v6.0.3 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

Successfully merging a pull request may close this issue.

2 participants