mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Prohibit concurrent submits in signal forms to prevent duplicate actions and side effects when a submission is already in progress.
If `submit()` is called while a prior submit is in progress for the same field or any of its parents, it returns `false` immediately without running the action again.
This commit also updates the documentation in `form-submission.md` to reflect this behavior.
Fixes #68317
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| api | ||
| compat | ||
| BUILD.bazel | ||
| dynamic.spec.ts | ||
| field_context.spec.ts | ||
| field_node.spec.ts | ||
| field_proxy.spec.ts | ||
| form.spec.ts | ||
| logic_node.spec.ts | ||
| ng_signal_form.spec.ts | ||
| parse_errors.spec.ts | ||
| path.spec.ts | ||
| recursive_logic.spec.ts | ||
| resource.spec.ts | ||
| submit.spec.ts | ||
| types.spec.ts | ||
| validation_status.spec.ts | ||