-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
scope: libAnything related to the library itselfAnything related to the library itselfstate: needs designThis feature or fix should be discussed before writing any codeThis feature or fix should be discussed before writing any codetype: RFC/discussion/questionThis issue is about RFC, discussion or a questionThis issue is about RFC, discussion or a questiontype: bug/fixThis is a bug or at least needs a fixThis is a bug or at least needs a fixtype: featureThis is a new featureThis is a new feature
Description
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.
Waterstraal and anschm
Metadata
Metadata
Assignees
Labels
scope: libAnything related to the library itselfAnything related to the library itselfstate: needs designThis feature or fix should be discussed before writing any codeThis feature or fix should be discussed before writing any codetype: RFC/discussion/questionThis issue is about RFC, discussion or a questionThis issue is about RFC, discussion or a questiontype: bug/fixThis is a bug or at least needs a fixThis is a bug or at least needs a fixtype: featureThis is a new featureThis is a new feature