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

Cascader value为0问题 #4110

Closed
zafkielkurumi opened this issue Sep 3, 2019 · 1 comment · Fixed by #4119

Comments

@zafkielkurumi
Copy link

commented Sep 3, 2019

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-rbpiaj

Steps to reproduce

1 nzOptions中某项value为0(复现中hangzhou的value为0),选完确定
2 再次点击 Cascader,输入框内容消失

What is expected?

支持value为0的判断

What is actually happening?

未处理value为0的判断

Environment Info
ng-zorro-antd 8.2.1
Browser chrome
@zorro-bot

This comment has been minimized.

Copy link

commented Sep 3, 2019

Translation of this issue:

Cascader value is 0

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-rbpiaj

Steps to reproduce

1 nzOptions a value of 0 (recurring hangzhou value is 0), select OK
2 Click Cascader again and the input box disappears.

What is expected?

Support for the judgment of value 0

What is actually happening?

Unprocessed value is 0

Environment Info
ng-zorro-antd 8.2.1
Browser chrome
hsuanxyz added a commit that referenced this issue Sep 6, 2019
fix(module:cascader): support falsy value expect for undefined and nu…
…ll (#4119)

* fix(module:cascader): support falsy value expect for undefined and null

* fix: tests

close #4110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.