Skip to content

docs(forms): clarify disabled FormArray value behavior#67776

Open
angular-bootstrap wants to merge 1 commit intoangular:mainfrom
angular-bootstrap:ui/67759-formarray-disabled-value-docs
Open

docs(forms): clarify disabled FormArray value behavior#67776
angular-bootstrap wants to merge 1 commit intoangular:mainfrom
angular-bootstrap:ui/67759-formarray-disabled-value-docs

Conversation

@angular-bootstrap
Copy link
Contributor

Description

Clarifies the FormArray API docs around disabled state and aggregated values.

The current implementation includes all child values when the FormArray itself is disabled, but the AbstractControl.value docs only described the enabled-controls case for FormArray. This made the behavior look inconsistent, especially compared with the existing FormGroup wording.

This updates the docs to make two things explicit:

  • an enabled FormArray aggregates the values of enabled child controls
  • a disabled FormArray aggregates the values of all child controls
  • if all controls in a FormArray are disabled, the array itself becomes disabled

Fixes #67759

Document that FormArray.value includes only enabled child controls when the array is enabled, but includes all child values when the FormArray itself is disabled.

Fixes angular#67759
@pullapprove pullapprove bot requested a review from kirjs March 20, 2026 17:30
@angular-robot angular-robot bot added area: docs Related to the documentation area: forms labels Mar 20, 2026
@ngbot ngbot bot added this to the Backlog milestone Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Related to the documentation area: forms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FormArray.value aggregates values of disabled FormControls

1 participant