mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Signal forms are model-driven and do not support pending or uncommitted
values. As a result, non-default `updateOn` options (`blur`, `submit`)
cannot be supported.
This commit adds a dev-mode check in `SignalFormControl` to throw an error
when:
1. An unsupported `updateOn` option is passed directly in options to the
`SignalFormControl` constructor.
2. A non-default `updateOn` option is inherited from a parent `FormGroup`
or `FormArray` via `setParent()`.
Additionally, `SignalFormControl` explicitly overrides `get updateOn()`
to return `'change'`.
(cherry picked from commit 9e99093bfe)