From 90daac35654aa95d3688288bc36881bfda3613ce Mon Sep 17 00:00:00 2001 From: simplejason Date: Thu, 14 Dec 2017 16:26:00 +0800 Subject: [PATCH] fix(module:select): reset select component this._value (#754) --- src/components/select/nz-select.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/select/nz-select.component.ts b/src/components/select/nz-select.component.ts index ee8a968502f..75c34f80926 100644 --- a/src/components/select/nz-select.component.ts +++ b/src/components/select/nz-select.component.ts @@ -471,7 +471,8 @@ export class NzSelectComponent implements OnInit, AfterContentInit, AfterContent return; } const arrayOptions = Array.from(this._selectedOptions); - this.onChange(arrayOptions.map(item => item.nzValue)); + this._value = arrayOptions.map(item => item.nzValue); + this.onChange(this._value); } /** update selected option when add remove option etc */