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

TreeSelect 当 key 为数字型且值为 0 时无法获取值 #3163

Closed
cipchk opened this issue Mar 25, 2019 · 0 comments
Closed

TreeSelect 当 key 为数字型且值为 0 时无法获取值 #3163

cipchk opened this issue Mar 25, 2019 · 0 comments
Assignees

Comments

@cipchk
Copy link
Member

cipchk commented Mar 25, 2019

Reproduction link

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

Steps to reproduce

  nodes = [
    {
      title: 'parent 1',
      key: 0,
    }
  ];

其中 0 应是一种有效值,但实则 nz-tree-select 无法获得 0 值;实际结果为一个 `` 空字符串;保持 key 的值应该是合理的。

Environment Info
ng-zorro-antd 7.1.0
Browser all
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Apr 10, 2019
andrew-yangy pushed a commit to andrew-yangy/ng-zorro-antd that referenced this issue Jun 20, 2019
)

* fix(module:tree, tree-select): fix the key validity check

close NG-ZORRO#3163

* fix(module:tree, tree-select): fix the key validity check
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
)

* fix(module:tree, tree-select): fix the key validity check

close NG-ZORRO#3163

* fix(module:tree, tree-select): fix the key validity check
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
)

* fix(module:tree, tree-select): fix the key validity check

close NG-ZORRO#3163

* fix(module:tree, tree-select): fix the key validity check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants