From 265b3a462479736c3b96286c7750033e1e51c1e1 Mon Sep 17 00:00:00 2001 From: simplejason Date: Thu, 14 Dec 2017 15:42:01 +0800 Subject: [PATCH] reset select component this._value --- 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 */