fix(forms): Also update viewModel in NgFormControl
This commit is contained in:
parent
e36966b83c
commit
70f6a46f1c
@ -84,6 +84,7 @@ export class NgFormControl extends NgControl implements OnChanges {
|
|||||||
}
|
}
|
||||||
if (isPropertyUpdated(c, this.viewModel)) {
|
if (isPropertyUpdated(c, this.viewModel)) {
|
||||||
this.form.updateValue(this.model);
|
this.form.updateValue(this.model);
|
||||||
|
this.viewModel = this.model;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user