From a4980e9e1f9bc1d6e6b5c23c188a02e6662f556d Mon Sep 17 00:00:00 2001 From: zangguodong <237974119@qq.com> Date: Thu, 24 Sep 2020 14:24:38 +0800 Subject: [PATCH] fix: changeValue should trigger before blur (#52) Co-authored-by: Guodong --- src/form/common-form.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/form/common-form.ts b/src/form/common-form.ts index ffcddb8d3..a5258825c 100644 --- a/src/form/common-form.ts +++ b/src/form/common-form.ts @@ -63,8 +63,8 @@ export class CommonFormControl implements ControlValueAccessor { protected emitValueChange(value: T) { if (this.onChange) { - this.writeValue(value); this.onChange(value); + this.writeValue(value); } this.valueChange.emit(value); }