-
Notifications
You must be signed in to change notification settings - Fork 26.3k
refactor(forms): added control name in console errors #55397
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
Conversation
@fdonzello could you please also update the commit message (via |
be23f6b
to
7e215b9
Compare
done :) |
5f97ba2
to
9dc5f76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fdonzello looks great, thanks for addressing the feedback. I've just left a couple minor comments related to formatting in tests.
@AndrewKushnir strange that |
When a formControlName is used without a parent formGroup, an error is logged in the console. Before this commit, there was no information about which control had the issue. Now, it's reported and the troubleshoot is much faster.
40e7adc
to
029b486
Compare
@fdonzello thanks for addressing the feedback! 👍 This PR is now in the merge queue. |
This PR was merged into the repository by commit c001b05. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Right now, when a form control is used without a parent form group, we get an error not reporting the form control name affected by the issue.

With long forms, it could take a lot of time to get the affected form control.
What is the new behavior?
The console error has been improved by reporting either the form control name or index affected by the issue.

Does this PR introduce a breaking change?
Other information
This is a starting point and can be further improved or scaled to other methods involved in form wrong usage.