Skip to content

Commit 70f6a46

Browse files
mgreenlandvsavkin
authored andcommitted
fix(forms): Also update viewModel in NgFormControl
1 parent e36966b commit 70f6a46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/angular2/src/core/forms/directives/ng_form_control.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export class NgFormControl extends NgControl implements OnChanges {
8484
}
8585
if (isPropertyUpdated(c, this.viewModel)) {
8686
this.form.updateValue(this.model);
87+
this.viewModel = this.model;
8788
}
8889
}
8990

0 commit comments

Comments
 (0)