angular/packages/core
Leon Senft 44cd18c183 refactor(forms): remove a TODO and simplify update on <select> mutations
Remove an unnecessary TODO comment. The native `<select>` tracks its
`value` by keeping track of the selected `<option>`. Thus if the value
was set *before* the corresponding option is created, the `<select>`
will ignore it, but the framework doesn't know that and will cache the
bound value anyways. Therefore, checking if the value changed since it
was last bound when the mutation that creates the selected `<option>`
occurs would in fact prevent a needed update, leaving the `<select>` and
field values out of sync.

Furthermore, we know the control type is a native `<select>` element, so
we can update its value directly instead of going through
`updateNativeControl()` which would perform a redundant input type
check.
2025-11-10 07:47:58 -08:00
..
global build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
primitives refactor(core): Extract NavigateEvent cancel steps based on recent spec update 2025-11-07 12:54:14 -08:00
resources build: format md files 2025-11-06 10:03:05 -08:00
rxjs-interop build: format md files 2025-11-06 10:03:05 -08:00
schematics build: format md files 2025-11-06 10:03:05 -08:00
src refactor(forms): remove a TODO and simplify update on <select> mutations 2025-11-10 07:47:58 -08:00
test Revert "feat(core): resource composition via snapshots" 2025-11-07 07:42:18 -08:00
testing build: format md files 2025-11-06 10:03:05 -08:00
BUILD.bazel refactor(core): move profile_types.ts to primtives 2025-11-06 14:22:33 -08:00
index.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
package.json build: refactor location of best-practices.md 2025-10-27 09:31:36 +01:00
PACKAGE.md build: format md files 2025-11-06 10:03:05 -08:00
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tsconfig-build.json build: migrate more targets of @angular/core to ts_project (#61370) 2025-05-16 11:02:07 +00:00
tsconfig-test.json build: migrate more targets of @angular/core to ts_project (#61370) 2025-05-16 11:02:07 +00:00