(Nested) Dynamic Controls are not being tracked when added after form initialization. #55893
Labels
needs reproduction
This issue needs a reproduction in order for the team to investigate further
Which @angular/* package(s) are the source of the bug?
forms
Is this a regression?
Yes
Description
When I initialize a form with an empty form array as one of the controls and add more controls to the array. The dynamic controls are not tracked and do not emit valueChange to form when they are changed. There is a complete demo below. I am using Angular version 17.3.9 at the time of writing this issue. Also validators added to the formArray does not work for the same reason as stated below
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-me9bcr?file=src%2Fmain.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
Please offer an alternative if it is a feature. I need the form to be aware of the state of the dynamic components, thanks.
The text was updated successfully, but these errors were encountered: