Title: When replacing form control which has async validator the status from statusChange stays PENDING · Issue #20424 · angular/angular · GitHub
Open Graph Title: When replacing form control which has async validator the status from statusChange stays PENDING · Issue #20424 · angular/angular
X Title: When replacing form control which has async validator the status from statusChange stays PENDING · Issue #20424 · angular/angular
Description: I'm submitting a... [X] Bug report Current behavior When replacing form control with a new one which has asynchronous validator only PENDING status is broadcasted from statusChanges observable. const myForm = new FormGroup({ myControl: n...
Open Graph Description: I'm submitting a... [X] Bug report Current behavior When replacing form control with a new one which has asynchronous validator only PENDING status is broadcasted from statusChanges observable. con...
X Description: I'm submitting a... [X] Bug report Current behavior When replacing form control with a new one which has asynchronous validator only PENDING status is broadcasted from statusChanges observable....
Opengraph URL: https://github.com/angular/angular/issues/20424
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"When replacing form control which has async validator the status from statusChange stays PENDING","articleBody":"## I'm submitting a...\r\n\u003cpre>\u003ccode>[X] Bug report\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\nWhen replacing form control with a new one which has asynchronous validator only `PENDING` status is broadcasted from `statusChanges` observable.\r\n\r\n```ts\r\nconst myForm = new FormGroup({\r\n myControl: new FormControl('simple input');\r\n});\r\n \r\nmyForm.statusChanges\r\n .subscribe(status => console.log(status));\r\n\r\nmyForm.setControl('myControl', new FormControl('another input', null, asyncValidator));\r\n```\r\nConsole will only print `PENDING`. Nothing more.\r\n\r\n## Expected behavior\r\nFinal `VALID` or `INVALID` status should be broadcasted after async validator finishes his job.\r\n\r\n## Minimal reproduction of the problem with instructions\r\nhttps://stackblitz.com/edit/angular-qmdbkx\r\n\r\n## Please tell us about your environment\r\n\u003cpre>\u003ccode>Angular version: 7.0.1\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/dzonatan","@type":"Person","name":"dzonatan"},"datePublished":"2017-11-14T14:19:34Z","url":"https://github.com/angular/angular/issues/20424"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:79e199c0-1677-ee24-0137-b6d7fa5dad0a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF1C:134361:1B0A524:238C355:6B014BCD |
| html-safe-nonce | d69c71b7676c31f85f2a89b9e2b33a7f0d8bd0792dbf1cd8c9d17af6b9fc0b39 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjFDOjEzNDM2MToxQjBBNTI0OjIzOEMzNTU6NkIwMTRCQ0QiLCJ2aXNpdG9yX2lkIjoiMTMyOTg5NTYwMzc2OTAwMjk1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c80089ec8bdfde3d73ac5a4580faf9108c73cd0b3b223e08cd28d7f608327edc |
| hovercard-subject-tag | issue:273808292 |
| 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/_view_fragments/issues/show/angular/angular/20424/issue_layout |
| twitter:image | https://opengraph.githubassets.com/636ab8b343a2fd5d4f63d8ade8ffe5b36b7864283934842ea0783f34ddd7e571/angular/angular/issues/20424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/636ab8b343a2fd5d4f63d8ade8ffe5b36b7864283934842ea0783f34ddd7e571/angular/angular/issues/20424 |
| og:image:alt | I'm submitting a... [X] Bug report Current behavior When replacing form control with a new one which has asynchronous validator only PENDING status is broadcasted from statusChanges observable. con... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dzonatan |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| 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