Form controls are not shown - very annoying bug
See original GitHub issueWhich @angular/* package(s) are the source of the bug?
forms
Is this a regression?
Yes
Description
Let’s say I have a reactive form and I have a switch which shows/hides some dependent inputs. But when for those dependent inputs FormControls are not defined, those controls do not show up on the UI. And THERE IS NO error, which is really annoying!
See the stackblitz. On the form, click on a [Have Plates] button.
To see the problem in code, open app/components/form-view.component.ts and see my comment.
The problem is the error:
Cannot find control with name: ‘licPlatesHowMany’
only shows up in the console when the project is running in the stackblitz, but it does NOT show up when running the project locally (ng serve)! It was really hard to find! Please make sure the error is ALWAYS generated in the console.
Please provide a link to a minimal reproduction of the bug
https://angular-ivy-1vwhz7.stackblitz.io
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version
)
see the stackblitz
Anything else?
No response
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Downloaded it and run with
ng serve
. While click [Have Plates] button got the error:This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.