Title: formGroup disable()/enable() does not work right after init · Issue #22556 · angular/angular · GitHub
Open Graph Title: formGroup disable()/enable() does not work right after init · Issue #22556 · angular/angular
X Title: formGroup disable()/enable() does not work right after init · Issue #22556 · angular/angular
Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
Open Graph Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
X Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
Opengraph URL: https://github.com/angular/angular
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"formGroup disable()/enable() does not work right after init","articleBody":"## I'm submitting a...\r\n\u003cpre>\u003ccode>\r\n[x] Bug report \u003c!-- Please search GitHub for a similar issue or PR before submitting -->\r\n\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\nI you create a `formGroup` using `formBuilder.group()` and call` formGroup.disable()` or `formGroup.enable()` right after initialization then it doesn't work.\r\nIf you call it using `button` or `setTimeout()` then it works.\r\n\r\n## Expected behavior\r\nWould be nice to be able to disable/enable form right after creation.\r\n\r\n## Minimal reproduction of the problem with instructions\r\nView: https://ng-form-disable-after-init.stackblitz.io\r\nEdit: https://stackblitz.com/edit/ng-form-disable-after-init\r\n\r\n## Environment\r\n\u003cpre>\u003ccode>Angular version: 5.2.7\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/ctrl-brk","@type":"Person","name":"ctrl-brk"},"datePublished":"2018-03-02T16:59:35Z","url":"https://github.com/angular/angular/issues/22556"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:83dce496-cb86-18ab-4a2e-3699c278c3ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBD8:34CAB:1A3A850:2177731:6B0152DB |
| html-safe-nonce | 01824b98b48d46ff1c1f7ba54455c141dc7dc91cfc72c87021466cb23bd3c4f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkQ4OjM0Q0FCOjFBM0E4NTA6MjE3NzczMTo2QjAxNTJEQiIsInZpc2l0b3JfaWQiOiIxNTU2NDA3MzkwMDcxNTA5NzIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aa886a85ab500a3bceffa79f17268609c9e6bf3b3cf6d5d895e83c98067c13fb |
| hovercard-subject-tag | repository:24195339 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/angular/angular/issues/22556 |
| twitter:image | https://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531 |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531 |
| og:image:alt | Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width