Title: Angular2 Forms Controls validation "OnLostFocus (OnBlur)" rather than "OnChange" · Issue #7113 · angular/angular · GitHub
Open Graph Title: Angular2 Forms Controls validation "OnLostFocus (OnBlur)" rather than "OnChange" · Issue #7113 · angular/angular
X Title: Angular2 Forms Controls validation "OnLostFocus (OnBlur)" rather than "OnChange" · Issue #7113 · angular/angular
Description: Hi, Looking at the code for setting up form controls in shared.ts it appears we detect control changes onChange "registerOnChange" eg. if a user types into an input control that is an ng2 angular control, each keypress triggers a validat...
Open Graph Description: Hi, Looking at the code for setting up form controls in shared.ts it appears we detect control changes onChange "registerOnChange" eg. if a user types into an input control that is an ng2 angular c...
X Description: Hi, Looking at the code for setting up form controls in shared.ts it appears we detect control changes onChange "registerOnChange" eg. if a user types into an input control that is an ng2...
Opengraph URL: https://github.com/angular/angular/issues/7113
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular2 Forms Controls validation \"OnLostFocus (OnBlur)\" rather than \"OnChange\" ","articleBody":"Hi,\n\nLooking at the code for setting up form controls in [shared.ts](https://github.com/angular/angular/blob/master/modules/angular2/src/common/forms/directives/shared.ts) it appears we detect control changes onChange \"registerOnChange\"\n\neg. if a user types into an input control that is an ng2 angular control, each keypress triggers a validationcheck .. \n\nIt appears to be a big change if i were to change it from OnChange to something like LostFocus of the control ... \n\nThe reason i ask is business really doesn't like the validation messages appearing suddenly even while the user hasn't finished filling in the field ... eg. filling in a \"Password\" control, the user is suddenly shown validation errors while they're typing ...\n\nAnyone got a nice solution for hiding validation messages and only showing them once they tab off the control ?!\n","author":{"url":"https://github.com/liquidboy","@type":"Person","name":"liquidboy"},"datePublished":"2016-02-17T00:49:04Z","url":"https://github.com/angular/angular/issues/7113"}
| 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:1e3a3d80-59b1-5602-2345-cf346ef594e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABAA:29AEE8:1AE743E:23CD40B:6B0158EF |
| html-safe-nonce | a827f38cbc6f083cc481791afd47f98d1395dcf7c3d714a661ebc0debf97056b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkFBOjI5QUVFODoxQUU3NDNFOjIzQ0Q0MEI6NkIwMTU4RUYiLCJ2aXNpdG9yX2lkIjoiOTA0MzQ0OTU0MDcyMzY5MzgwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f4ab798e8575fbb889f4e573c2a4812ae6b573f0a6fe427810fd6d71f1d07b7c |
| hovercard-subject-tag | issue:134140934 |
| 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/7113/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5bb1ee92b81784331c856d8b7f346503250ddb831e2fe0228ad975f117608121/angular/angular/issues/7113 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5bb1ee92b81784331c856d8b7f346503250ddb831e2fe0228ad975f117608121/angular/angular/issues/7113 |
| og:image:alt | Hi, Looking at the code for setting up form controls in shared.ts it appears we detect control changes onChange "registerOnChange" eg. if a user types into an input control that is an ng2 angular c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | liquidboy |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width