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使用nzLoadData时的错误 #1927

Closed
huruomin opened this issue Aug 5, 2018 · 2 comments · Fixed by #1931
Closed

Cascader使用nzLoadData时的错误 #1927

huruomin opened this issue Aug 5, 2018 · 2 comments · Fixed by #1931
Assignees
Labels

Comments

@huruomin
Copy link

huruomin commented Aug 5, 2018

Version

1.3.0

Environment

Mac Chrome

Reproduction link

https://ng-zorro-antd-start.stackblitz.io

Steps to reproduce

直接官网即可重现:

1、打开:https://ng.ant.design/components/cascader/zh
2、定位到“动态加载选项”的demo
3、随便选定一个leaf选项
4、点叉清空已选择的选项
5、再次尝试去下拉选择时,报错:

ERROR TypeError: Cannot read property 'length' of undefined
at n.loadRootOptions (main.9ad12f74ccc84f888c4c.js:1)
at n.beforeVisible (main.9ad12f74ccc84f888c4c.js:1)
at n.setMenuVisible (main.9ad12f74ccc84f888c4c.js:1)
at main.9ad12f74ccc84f888c4c.js:1
at t.invokeTask (polyfills.972894ed752435a22ec0.js:1)
at Object.onInvokeTask (main.9ad12f74ccc84f888c4c.js:1)
at t.invokeTask (polyfills.972894ed752435a22ec0.js:1)
at r.runTask (polyfills.972894ed752435a22ec0.js:1)
at e.invokeTask (polyfills.972894ed752435a22ec0.js:1)
at invoke (polyfills.972894ed752435a22ec0.js:1)

What is expected?

不报错

What is actually happening?

报错

Other?

@wzhudev wzhudev self-assigned this Aug 6, 2018
@wzhudev
Copy link
Member

wzhudev commented Aug 6, 2018

@huruomin Thanks for your feedback. We will look into this.

wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Aug 6, 2018
hsuanxyz pushed a commit that referenced this issue Aug 19, 2018
* fix(module:cascader): fix dynamic loading error

close #1927

* fix test
@lock
Copy link

lock bot commented Aug 19, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 19, 2019
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
* fix(module:cascader): fix dynamic loading error

close NG-ZORRO#1927

* fix test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants