René's URL Explorer Experiment


Title: forms: validator directives (required, minlength, …) are not applied to a custom control bound with ngModel / formControl · Issue #70721 · angular/angular · GitHub

Open Graph Title: forms: validator directives (required, minlength, …) are not applied to a custom control bound with ngModel / formControl · Issue #70721 · angular/angular

X Title: forms: validator directives (required, minlength, …) are not applied to a custom control bound with ngModel / formControl · Issue #70721 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? forms Is this a regression? No Description A component with no ControlValueAccessor and a value (or checked) model is bound through NgModel / FormControlDirective via the custom-cont...

Open Graph Description: Which @angular/* package(s) are the source of the bug? forms Is this a regression? No Description A component with no ControlValueAccessor and a value (or checked) model is bound through NgModel / ...

X Description: Which @angular/* package(s) are the source of the bug? forms Is this a regression? No Description A component with no ControlValueAccessor and a value (or checked) model is bound through NgModel / ...

Opengraph URL: https://github.com/angular/angular/issues/70721

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"forms: validator directives (required, minlength, …) are not applied to a custom control bound with ngModel / formControl","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nforms\n\n### Is this a regression?\n\nNo\n\n### Description\n\nA component with no ControlValueAccessor and a `value` (or `checked`) model is bound through NgModel /\nFormControlDirective via the custom-control path. Value sync works in both directions, but template validator\ndirectives on that element are never attached: `required`, `minlength`, `maxlength`, `pattern`, `email`, `min`\nand `max` produce no errors and the control stays valid. The same attributes on a native \u003cinput> work. Nothing\nthrows or warns, so a form migrated from a CVA-based control silently starts submitting invalid data.\n\nIn @angular/forms 22.1.6 (fesm2022/forms.mjs):\n- setUpControlValueAccessor (1880) calls setUpValidators (1885).\n- NgModel._setUpStandalone / _setupWithForm (3518–3536) call setupCustomControl() instead when\n  isCustomControlBased, and setupCustomControl (2147) never calls setUpValidators.\n- ngControlCreate (2171–2192) does find the RequiredValidator (requiredValidatorViaDi), but only uses it for the\n  `required` binding, not as a validator.\nOnly validators set on the FormControl itself (e.g. Validators.required) take effect.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/jj6trr42?file=src%2Fapp%2Fapp.ts\n\n### Please provide the exception or error you saw\n\n```true\nNone. Expected `custom` and `formControl` to report {\"required\":true}, like `native`.\nActual: custom: null · native: {\"required\":true} · formControl: null\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\n@angular/core 22.1.6, @angular/forms 22.1.6, Node 24.16.0\n```\n\n### Anything else?\n\nWorkaround: set the validators on the FormControl (Validators.required) instead of as template directives.","author":{"url":"https://github.com/thekhegay","@type":"Person","name":"thekhegay"},"datePublished":"2026-09-14T16:24:38Z","url":"https://github.com/angular/angular/issues/70721"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:70e9710a-b49a-3b7e-35dc-85bcdf319068
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB2C:1D86C4:38F770E:486D3E2:6B01F5C4
html-safe-nonceaec80d88ea2ac05d559c0f596dc892939a2c866d1b24baf6e53faf289ce696be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjJDOjFEODZDNDozOEY3NzBFOjQ4NkQzRTI6NkIwMUY1QzQiLCJ2aXNpdG9yX2lkIjoiNDU2NDg0MzM1NDU0NTg0NTcwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac171a423342a0d820d4a7b0defbb5ef0c7f5f2c8b89ae41f74e6eeff8cf046226
hovercard-subject-tagissue:5451902395
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/70721/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3b75afe3ffe90f13a90b67333674ba1ac7d881b0bbb0e07f0cd5c345c35520d0/angular/angular/issues/70721
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3b75afe3ffe90f13a90b67333674ba1ac7d881b0bbb0e07f0cd5c345c35520d0/angular/angular/issues/70721
og:image:altWhich @angular/* package(s) are the source of the bug? forms Is this a regression? No Description A component with no ControlValueAccessor and a value (or checked) model is bound through NgModel / ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethekhegay
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/70721#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F70721
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F70721
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/70721
Reloadhttps://github.com/angular/angular/issues/70721
Reloadhttps://github.com/angular/angular/issues/70721
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests142 (142)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/70721
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/70721
forms: validator directives (required, minlength, …) are not applied to a custom control bound with ngModel / formControlhttps://github.com/angular/angular/issues/70721#top
area: formshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20forms%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/thekhegay
thekhegayhttps://github.com/thekhegay
on Sep 14, 2026https://github.com/angular/angular/issues/70721#issue-5451902395
https://stackblitz.com/edit/jj6trr42?file=src%2Fapp%2Fapp.tshttps://stackblitz.com/edit/jj6trr42?file=src%2Fapp%2Fapp.ts
angular-robothttps://github.com/apps/angular-robot
area: formshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20forms%22
gemini-triagedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
on Sep 14, 2026https://github.com/angular/angular/issues/70721#event-31115052927
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Sep 14, 2026https://github.com/angular/angular/issues/70721#event-31115054842
thekhegayhttps://github.com/thekhegay
on Sep 15, 2026https://github.com/angular/angular/issues/70721#event-31174820227
fix(forms): apply validator directives to custom form controlshttps://github.com/thekhegay/angular/commit/9024725e503bd8d49843b00972a3b945087ecb8a
https://docs.github.com/articles/closing-issues-via-commit-messages
9024725https://github.com/thekhegay/angular/commit/9024725e503bd8d49843b00972a3b945087ecb8a
thekhegayhttps://github.com/thekhegay
on Oct 1, 2026https://github.com/angular/angular/issues/70721#event-32236729503
fix(forms): apply validator directives to custom form controlshttps://github.com/thekhegay/angular/commit/a19e8546b065ce069a36166e9d1d7a9db2e7d6dd
https://docs.github.com/articles/closing-issues-via-commit-messages
a19e854https://github.com/thekhegay/angular/commit/a19e8546b065ce069a36166e9d1d7a9db2e7d6dd
https://github.com/xidedix
xidedixhttps://github.com/xidedix
on Oct 5, 2026https://github.com/angular/angular/issues/70721#issuecomment-5998381498
https://github.com/smiera
smierahttps://github.com/smiera
on Oct 15, 2026https://github.com/angular/angular/issues/70721#issuecomment-6195032026
thekhegayhttps://github.com/thekhegay
on Oct 20, 2026https://github.com/angular/angular/issues/70721#event-33725412344
fix(forms): apply validator directives to custom form controlshttps://github.com/thekhegay/angular/commit/e13ef98060df59607ae9db83ced399e413c40cb3
https://docs.github.com/articles/closing-issues-via-commit-messages
e13ef98https://github.com/thekhegay/angular/commit/e13ef98060df59607ae9db83ced399e413c40cb3
JeanMechehttps://github.com/JeanMeche
gemini-triagedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
on Oct 29, 2026https://github.com/angular/angular/issues/70721#event-34632141049
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Oct 30, 2026https://github.com/angular/angular/issues/70721#issuecomment-6535006065
angular/packages/forms/src/directives/validators.tshttps://github.com/angular/angular/blob/74961c662420ea02a5872bfa1a0ee3284526b887/packages/forms/src/directives/validators.ts#L379-L386
74961c6https://github.com/angular/angular/commit/74961c662420ea02a5872bfa1a0ee3284526b887
#70723https://github.com/angular/angular/pull/70723
https://github.com/leonsenft
leonsenfthttps://github.com/leonsenft
on Oct 30, 2026https://github.com/angular/angular/issues/70721#issuecomment-6535427013
@JeanMechehttps://github.com/JeanMeche
#67267https://github.com/angular/angular/pull/67267
@alxhubhttps://github.com/alxhub
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Oct 30, 2026https://github.com/angular/angular/issues/70721#issuecomment-6535486365
#70723https://github.com/angular/angular/pull/70723
thekhegayhttps://github.com/thekhegay
on Nov 3, 2026https://github.com/angular/angular/issues/70721#event-34993572763
fix(forms): apply validator directives to custom form controlshttps://github.com/thekhegay/angular/commit/2a474a69f5da5b3892c361cd8485667b62d87c7a
https://docs.github.com/articles/closing-issues-via-commit-messages
2a474a6https://github.com/thekhegay/angular/commit/2a474a69f5da5b3892c361cd8485667b62d87c7a
fix(forms): apply validator directives to custom form controlshttps://github.com/thekhegay/angular/commit/c8687f1bd11e9b7ab2053bf34ab71b3adf46197c
https://docs.github.com/articles/closing-issues-via-commit-messages
c8687f1https://github.com/thekhegay/angular/commit/c8687f1bd11e9b7ab2053bf34ab71b3adf46197c
fix(forms): apply validator directives to custom form controlshttps://github.com/thekhegay/angular/commit/f4179c54b016d0f03e341793dd18402e6a12de60
https://docs.github.com/articles/closing-issues-via-commit-messages
f4179c5https://github.com/thekhegay/angular/commit/f4179c54b016d0f03e341793dd18402e6a12de60
JeanMechehttps://github.com/JeanMeche
on Nov 11, 2026https://github.com/angular/angular/issues/70721#event-35845117003
fix(forms): apply validator directives to custom form controlshttps://github.com/thekhegay/angular/commit/582f43ad81856df0b0413cfbb2b55646c0552db8
https://docs.github.com/articles/closing-issues-via-commit-messages
582f43ahttps://github.com/thekhegay/angular/commit/582f43ad81856df0b0413cfbb2b55646c0552db8
thePunderWomanhttps://github.com/thePunderWoman
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
f9cf826https://github.com/angular/angular/commit/f9cf82642ca205d4d761c952ddfa08a37a0627bb
on Nov 11, 2026https://github.com/angular/angular/issues/70721#event-35851956515
angular-robothttps://github.com/angular-robot
on Nov 11, 2026https://github.com/angular/angular/issues/70721#event-35853717771
fix(forms): apply validator directives to custom form controlshttps://github.com/angular-robot/angular/commit/f9cf82642ca205d4d761c952ddfa08a37a0627bb
https://docs.github.com/articles/closing-issues-via-commit-messages
f9cf826https://github.com/angular-robot/angular/commit/f9cf82642ca205d4d761c952ddfa08a37a0627bb
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/70721
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/70721
area: formshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20forms%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.