angular/packages
Sonu Kapoor c075ef1173 fix(forms): parse numeric model values for signal forms <select>
When a `<select>` element is bound via `[formField]` to a field with a
`number | null` model, the native DOM always reads `element.value` as a
string. This caused the model to silently receive a string (e.g. `"42"`)
instead of the expected number, and writing `null` to `element.value`
coerced it to the string `"null"` rather than clearing the selection.

Extend `getNativeControlValue` with a `select-one` case that mirrors the
existing `<input type="text">` numeric-model logic: when the current model
type is `number | null`, parse the selected option's string value as a
number, return `null` for an empty selection, and produce a parse error if
the option value is not a valid number.

Extend `setNativeControlValue` with a matching `select-one` case that
converts `null` and `NaN` to `''` (clearing the selection) and writes
numeric values as `String(value)`.

Replace the bare `input.value = ... as string` assignment in the
`observeSelectMutations` callback in `nativeControlCreate` with a call to
`setNativeControlValue` so that option-change re-sync also benefits from
the same null/number handling.

Fixes #68217
2026-04-29 09:11:52 -04:00
..
animations test: remove duplicate tests (#67518) 2026-03-11 13:37:33 -07:00
benchpress build: update cross-repo angular dependencies 2026-03-05 11:43:25 -08:00
common ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
compiler feat(core): introduce @Service decorator 2026-04-22 11:01:01 -07:00
compiler-cli build: cleanup workspace deps 2026-04-23 11:38:26 -07:00
core build: update cross-repo angular dependencies to v22.0.0-next.6 2026-04-23 14:13:04 -07:00
docs/di build: format md files 2025-11-06 10:03:05 -08:00
elements refactor(core): remove ComponentFactoryResolver usages 2026-04-13 16:00:03 +03:00
examples feat(core): bootstrap via ApplicationRef with config 2026-04-07 12:48:53 -07:00
forms fix(forms): parse numeric model values for signal forms <select> 2026-04-29 09:11:52 -04:00
language-service refactor: remove all deep imports in language service 2026-04-13 11:16:26 +03:00
localize fix(localize): validate locale in getOutputPathFn to prevent path traversal 2026-03-30 12:15:26 +02:00
misc/angular-in-memory-web-api ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
platform-browser ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
platform-browser-dynamic ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
platform-server build: cleanup workspace deps 2026-04-23 11:38:26 -07:00
private/testing build: consolidate domino bundling in platform-server 2026-03-25 13:31:05 -07:00
router ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
service-worker fix(service-worker): resolve TS 6.0 compatibility for messageerror listener 2026-04-09 21:46:28 +03:00
ssr/docs build: add node type for api extraction 2026-02-11 13:57:58 -08:00
upgrade refactor(core): remove ComponentFactoryResolver usages 2026-04-13 16:00:03 +03:00
zone.js ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
BUILD.bazel refactor(platform-browser): remove Hammer integration 2026-03-19 16:13:20 -07:00
circular-deps-test.conf.cjs build: use Node.js built-in TypeScript support for dev-infra scripts 2026-01-02 08:15:40 +01:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update copyright year 2026-01-07 12:28:34 -05:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md build: format md files 2025-11-06 10:03:05 -08:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json Revert "refactor(compiler-cli): remove deep imports from compiler-cli (#64732)" 2025-11-06 13:09:01 -08:00
tsconfig-legacy-saucelabs.json ci: remove remainings of saucelabs tests 2026-04-22 14:41:03 -07:00
tsconfig-test.json
tsconfig.json feat(compiler-cli): enable type checking of host bindings by default (#63654) 2025-09-09 14:34:29 -07:00
tsec-exemption.json
types.d.ts refactor(platform-browser): remove Hammer integration 2026-03-19 16:13:20 -07:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT