Skip to content

Disabled - is not included in formGroupValuesΒ #103

@AdditionAddict

Description

@AdditionAddict

I noticed this.formGroup.value is being used in ngx-sub-form.component.ts rather than this.formGroup.getRawValue().

this.formGroup.value will omit any disabled controls.

Demo - https://stackblitz.com/edit/ngx-sub-form-stepper-form-demo-s5ajvo *
Note how with

secondUnique: new FormControl({value:'1', disabled: true}),

that this is missing from the values.

*copy of original https://stackblitz.com/edit/ngx-sub-form-stepper-form-demo

I would be interested if this is intended behaviour? Note this hasn't come from my own use cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: libAnything related to the library itselfstate: needs designThis feature or fix should be discussed before writing any codetype: RFC/discussion/questionThis issue is about RFC, discussion or a questiontype: bug/fixThis is a bug or at least needs a fixtype: featureThis is a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions