Skip to content

Commit

Permalink
fix: changeValue should trigger before blur (#52)
Browse files Browse the repository at this point in the history
Co-authored-by: Guodong <gdzang@alauda.io>
  • Loading branch information
zangguodong and Guodong authored Sep 24, 2020
1 parent d900f45 commit a4980e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/form/common-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export class CommonFormControl<T, V = T> implements ControlValueAccessor {

protected emitValueChange(value: T) {
if (this.onChange) {
this.writeValue(value);
this.onChange(value);
this.writeValue(value);
}
this.valueChange.emit(value);
}
Expand Down

0 comments on commit a4980e9

Please sign in to comment.