Skip to content

Commit

Permalink
fix(module:select): fix select with tokenization bug (#3869)
Browse files Browse the repository at this point in the history
close #3825
  • Loading branch information
vthinkxie authored Jul 26, 2019
1 parent 7c0aa51 commit fa462c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/select/nz-select-top-control.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export class NzSelectTopControlComponent implements OnInit, OnDestroy {
}

setInputValue(value: string): void {
/** fix clear value https://github.com/NG-ZORRO/ng-zorro-antd/issues/3825 **/
if (this.inputElement && !value) {
this.inputElement.nativeElement.value = value;
}
this.inputValue = value;
this.updateWidth();
this.nzSelectService.updateSearchValue(value);
Expand Down

0 comments on commit fa462c7

Please sign in to comment.