Skip to content

Commit

Permalink
fix(module:select): reset select component this._value (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
simplejason authored and 执衡 committed Dec 14, 2017
1 parent d0a6793 commit 4a50d0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/select/nz-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4a50d0d

Please sign in to comment.