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

FormArray with FormGroups inside #25

Open
Langstra opened this issue Feb 24, 2021 · 0 comments
Open

FormArray with FormGroups inside #25

Langstra opened this issue Feb 24, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Langstra
Copy link

I'm submitting a...


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

Current behavior

this.formsManager
      .upsert('skills', this.skills, { arrControlFactory: value => new FormGroup(value) })
);
ERROR TypeError: control.setParent is not a function
    at forms.js:4112
    at forms.js:4106
    at Array.forEach (<anonymous>)
    at FormGroup._forEachChild (forms.js:4101)
    at FormGroup._setUpControls (forms.js:4111)
    at new FormGroup (forms.js:3833)
    at arrControlFactory (ubo-form.component.ts:23)
    at ngneat-forms-manager.js:393
    at Array.forEach (<anonymous>)
    at handleFormArray (ngneat-forms-manager.js:388)

Expected behavior

That I can track an array of FormGroup's.

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

Have the ability to add an array of skills, where a skill is a name + proficiency.

@NetanelBasal NetanelBasal added enhancement New feature or request good first issue Good for newcomers labels Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants