{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/7170","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/7170/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/7170/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/7170/events","html_url":"https://github.com/angular/angular-cli/issues/7170","id":246071797,"node_id":"MDU6SXNzdWUyNDYwNzE3OTc=","number":7170,"title":"Updating disabled state after replacing FormGroup.","user":{"login":"dgluszczyk","id":30500693,"node_id":"MDQ6VXNlcjMwNTAwNjkz","avatar_url":"https://avatars2.githubusercontent.com/u/30500693?v=4","gravatar_id":"","url":"https://api.github.com/users/dgluszczyk","html_url":"https://github.com/dgluszczyk","followers_url":"https://api.github.com/users/dgluszczyk/followers","following_url":"https://api.github.com/users/dgluszczyk/following{/other_user}","gists_url":"https://api.github.com/users/dgluszczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/dgluszczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgluszczyk/subscriptions","organizations_url":"https://api.github.com/users/dgluszczyk/orgs","repos_url":"https://api.github.com/users/dgluszczyk/repos","events_url":"https://api.github.com/users/dgluszczyk/events{/privacy}","received_events_url":"https://api.github.com/users/dgluszczyk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-27T15:07:47Z","updated_at":"2019-09-07T08:41:02Z","closed_at":"2017-07-27T15:13:22Z","author_association":"NONE","body":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n```\r\n@angular/cli: 1.3.0-beta.1\r\nnode: 6.9.5\r\nos: win32 x64\r\n@angular/animations: 4.3.0-beta.0\r\n@angular/common: 4.3.0-beta.0\r\n@angular/compiler: 4.3.0-beta.0\r\n@angular/core: 4.3.0-beta.0\r\n@angular/flex-layout: 2.0.0-beta.8\r\n@angular/forms: 4.3.0-beta.0\r\n@angular/http: 4.3.0-beta.0\r\n@angular/material: 2.0.0-beta.7\r\n@angular/platform-browser: 4.3.0-beta.0\r\n@angular/platform-browser-dynamic: 4.3.0-beta.0\r\n@angular/router: 4.3.0-beta.0\r\n@angular/cli: 1.3.0-beta.1\r\n@angular/compiler-cli: 4.3.0-beta.0\r\n```\r\n\r\n\r\n### Repro steps.\r\n1. Open related plunker: https://plnkr.co/edit/XSp2RhwBEEPylQub8W0L?p=preview\r\n2. Click on 'Two enabled fields' button. Title select hasn't changed state to enabled.\r\n3. Click on 'Two disabled fields' button. Name input hasn't changed state to disabled.\r\n\r\nAfter each step value and state are updated inside connected FormControl (printed values) but change of disabled/enabled state is not propagated to DOM.\r\n\r\nI created second plunker with one small change, I'm binding controls using [formControl] instead of formControlName and it behaves slightly different: it hasn't got any problems with switching state to disabled but it can't return to enabled state. Link: http://plnkr.co/edit/Xipc02DXwcv5y5gPmexo?p=preview\r\n\r\nI know, that I can use enable() and disable() methods, but in my case I'm generating complete FormGroups and I have to replace them.\r\n\r\nFor now I'm using workaround which crawls through whole AbstractControls tree and runs enable() and disable() methods but I believe it should be fixed in better way inside framework.\r\n\r\n\r\n### Desired functionality.\r\nI'd like to have properly refreshed DOM when I toggle control's state using new instance of FormGroup."},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/529087587","html_url":"https://github.com/angular/angular-cli/issues/7170#issuecomment-529087587","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/7170","id":529087587,"node_id":"MDEyOklzc3VlQ29tbWVudDUyOTA4NzU4Nw==","user":{"login":"angular-automatic-lock-bot[bot]","id":54863671,"node_id":"MDM6Qm90NTQ4NjM2NzE=","avatar_url":"https://avatars0.githubusercontent.com/in/40213?v=4","gravatar_id":"","url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D","html_url":"https://github.com/apps/angular-automatic-lock-bot","followers_url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D/followers","following_url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D/repos","events_url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/angular-automatic-lock-bot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-09-07T08:41:02Z","updated_at":"2019-09-07T08:41:02Z","author_association":"NONE","body":"This issue has been automatically locked due to inactivity.\nPlease file a new issue if you are encountering a similar or related problem.\n\nRead more about our [automatic conversation locking policy](https://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking).\n\n<sub>_This action has been performed automatically by a bot._</sub>"}}
{"actor":{"display_login":"angular-automatic-lock-bot"}}