Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select: 搜索与标签模式一起使用时会产生错误的显示文本 #3424

Closed
cipchk opened this issue May 8, 2019 · 1 comment · Fixed by #3442 or #3573
Closed

Select: 搜索与标签模式一起使用时会产生错误的显示文本 #3424

cipchk opened this issue May 8, 2019 · 1 comment · Fixed by #3442 or #3573

Comments

@cipchk
Copy link
Member

cipchk commented May 8, 2019

重现

https://stackblitz.com/edit/angular-yhvqe3?file=src/app/app.component.ts

步骤

  • 不键入文本,选择第一项
  • 键入任何文本

image

示例中 nz-optionnzValue 是一个 Object 对象,会发生上述现象;若一个基础类型数组(例如:string[])表现正常。

@ng-zorro-bot
Copy link
Collaborator

Translation of this issue:


Select: Searching with tab mode will produce incorrect display text

Reproduce

Https://stackblitz.com/edit/angular-yhvqe3?file=src/app/app.component.ts

step

  • Do not type text, select the first item
  • type any text

image

In the example, nzValue of nz-option is an Object object, which happens; if an array of underlying types (for example: string[]) behaves normally.

simplejason pushed a commit that referenced this issue Jun 5, 2019
close #3424
* fix(module:select): display error when in tag and search mode

* fix: concat cached options and selected values
@vthinkxie vthinkxie reopened this Jun 14, 2019
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
…RO#3442)

close NG-ZORRO#3424
* fix(module:select): display error when in tag and search mode

* fix: concat cached options and selected values
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
…RO#3442)

close NG-ZORRO#3424
* fix(module:select): display error when in tag and search mode

* fix: concat cached options and selected values
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants