Revert "fix(forms): set state before emitting a value from ngModelChange (#21514)"

This reverts commit 9744a1c966.
This commit is contained in:
Miško Hevery
2018-02-09 10:11:23 -08:00
parent 0b1f5d2127
commit cf8d512e43
2 changed files with 1 additions and 42 deletions

View File

@ -99,9 +99,9 @@ function setUpBlurPipeline(control: FormControl, dir: NgControl): void {
}
function updateControl(control: FormControl, dir: NgControl): void {
dir.viewToModelUpdate(control._pendingValue);
if (control._pendingDirty) control.markAsDirty();
control.setValue(control._pendingValue, {emitModelToViewChange: false});
dir.viewToModelUpdate(control._pendingValue);
control._pendingChange = false;
}