You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Creating a new FormGroup instance for the same <form> Element does not initialize disabled states correctly #44478
Which @angular/* package(s) are the source of the bug?
forms
Is this a regression?
No
Description
If a form is initialized multiply times with a new FormGroup, default disabled states of the controls will not apply.
It seems, that the form states (enabled/disabled) are somehow cached in the view. So, as a workaround, I destroyed the view and created a new one. You can see the workaround in the stackblitz, too.
Please provide a link to a minimal reproduction of the bug
As @destus90 mentioned above, this issue looks similar to #22556 (with a possible fix in PR #43499), so I'm closing this issue as a duplicate. Please subscribe to #22556 to get further updates. Thank you.
Activity
destus90 commentedon Dec 14, 2021
Seems like the work is already underway in this area
#43499
AndrewKushnir commentedon Dec 17, 2021
As @destus90 mentioned above, this issue looks similar to #22556 (with a possible fix in PR #43499), so I'm closing this issue as a duplicate. Please subscribe to #22556 to get further updates. Thank you.
angular-automatic-lock-bot commentedon Jan 17, 2022
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.