Title: Signal Forms: Native
Open Graph Title: Signal Forms: Native
X Title: Signal Forms: Native
Description: Which @angular/* package(s) are the source of the bug? @angular/forms Is this a regression? No Description When using Signal Forms with a model containing a numeric property, binding a native
Open Graph Description: Which @angular/* package(s) are the source of the bug? @angular/forms Is this a regression? No Description When using Signal Forms with a model containing a numeric property, binding a native X Description: Which @angular/* package(s) are the source of the bug? @angular/forms Is this a regression? No Description When using Signal Forms with a model containing a numeric property, binding a native <s...
Opengraph URL: https://github.com/angular/angular/issues/69744
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Signal Forms: Native \u003cselect> does not support FormField\u003cnumber>","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\n@angular/forms\n\n### Is this a regression?\n\nNo\n\n### Description\n\nWhen using Signal Forms with a model containing a numeric property, binding a native `\u003cselect>` element to a `FormField\u003cnumber>` produces a compile-time type error.\n\n**Example model:**\n\n```ts\ninterface Model {\n count: number;\n}\n\nmodel = signal\u003cModel>({\n count: 1,\n});\n\nformModel = form(this.model);\n```\n\n**Template:**\n\n```html\n\u003cselect [formField]=\"formModel.count\">\n \u003coption [value]=\"1\">1\u003c/option>\n \u003coption [value]=\"2\">2\u003c/option>\n\u003c/select>\n```\n\n> `formModel.count` is underlined with a type error.\n\n**Compiler error:**\n\n```text\nType 'number' is not assignable to type 'string'. ngtsc(2322)\n```\n\nThe same model works correctly with:\n\n```html\n\u003cinput type=\"number\" [formField]=\"formModel.count\">\n```\n\nIs this the expected behavior, or should Signal Forms support numeric `\u003cselect>` values in the same way that `input[type=\"number\"]` does?\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/stackblitz-starters-qjz9zmaj?file=src%2Fmain.ts\n\n### Please provide the exception or error you saw\n\n```text\nType 'number' is not assignable to type 'string'. ngtsc(2322)\n\nError occurs on:\n\n\u003cselect [formField]=\"formModel.count\">\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```text\nAngular CLI : 21.2.19\nAngular : 21.2.18\nNode.js : 25.7.0 (Unsupported)\nPackage Manager : npm 11.10.1\nOperating System : win32 x64\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build │ 21.2.19 │ ^21.2.19 │\n│ @angular/cli │ 21.2.19 │ ^21.2.19 │\n│ @angular/common │ 21.2.18 │ ^21.2.18 │\n│ @angular/compiler │ 21.2.18 │ ^21.2.18 │\n│ @angular/compiler-cli │ 21.2.18 │ ^21.2.18 │\n│ @angular/core │ 21.2.18 │ ^21.2.18 │\n│ @angular/forms │ 21.2.18 │ ^21.2.18 │\n│ @angular/platform-browser │ 21.2.18 │ ^21.2.18 │\n│ @angular/router │ 21.2.18 │ ^21.2.18 │\n│ rxjs │ 7.8.2 │ ~7.8.0 │\n│ typescript │ 5.9.3 │ ~5.9.3 │\n└───────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else?\n\nThe issue only occurs with a native `\u003cselect>` element.\n\nUsing:\n\n```html\n\u003cinput type=\"number\" [formField]=\"formModel.count\">\n```\n\nworks as expected.\n\nThe Angular Signal Forms documentation mentions automatic conversion for `input[type=\"number\"]`, but it is unclear whether native `\u003cselect>` elements are intended to support numeric model values or only string model values.\n\nIf this behavior is intentional, the documentation could explicitly mention that `\u003cselect>` currently only supports `FormField\u003cstring>`. Otherwise, this may be a typing issue in Signal Forms.","author":{"url":"https://github.com/Akash-Peace","@type":"Person","name":"Akash-Peace"},"datePublished":"2026-07-11T16:14:29Z","url":"https://github.com/angular/angular/issues/69744"}
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:101a780e-39de-4eda-6a4d-fcd87ed37e1c current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 87BE:1CCECA:D7A91E:1201C14:6B01DAC0 html-safe-nonce f899149e7def361761f590926fbd993caa3ff536257e86588c4936d35bd23877 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0JFOjFDQ0VDQTpEN0E5MUU6MTIwMUMxNDo2QjAxREFDMCIsInZpc2l0b3JfaWQiOiI3MTU0NDA0MjM2ODE2NjY5Mzc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 00efb88744119e82e91cab1a78ad1802f1b34682ee2d14c3ffac82879591f1b7 hovercard-subject-tag issue:4863118096 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/69744/issue_layout twitter:image https://opengraph.githubassets.com/65def252d0ff6d24d5e2d2193cf66c9e0754ee5783ffd972d2177f79c6dcc8f8/angular/angular/issues/69744 twitter:card summary_large_image og:image https://opengraph.githubassets.com/65def252d0ff6d24d5e2d2193cf66c9e0754ee5783ffd972d2177f79c6dcc8f8/angular/angular/issues/69744 og:image:alt Which @angular/* package(s) are the source of the bug? @angular/forms Is this a regression? No Description When using Signal Forms with a model containing a numeric property, binding a native og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username Akash-Peace 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
URLs of crawlers that visited me.