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

4.0版本Tree控件删除节点出错 #18805

Closed
1 task done
daihy8759 opened this issue Sep 15, 2019 · 0 comments
Closed
1 task done

4.0版本Tree控件删除节点出错 #18805

daihy8759 opened this issue Sep 15, 2019 · 0 comments
Assignees
Labels
4.x In Ant Design 4.0 🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@daihy8759
Copy link

daihy8759 commented Sep 15, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

点击删除节点报错:

Uncaught TypeError: Cannot read property 'pos' of undefined
    at getTreeNodeProps (treeUtil.js:268)
    at eval (NodeList.js:211)
    at eval (List.js:213)
    at Array.map (<anonymous>)
    at List._this.renderChildren (List.js:211)
    at List.render (List.js:733)
    at finishClassComponent (react-dom.development.js:17039)
    at updateClassComponent (react-dom.development.js:16994)
    at beginWork$1 (react-dom.development.js:18505)
    at HTMLUnknownElement.callCallback (react-dom.development.js:347)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:397)
    at invokeGuardedCallback (react-dom.development.js:454)
    at beginWork$$1 (react-dom.development.js:23217)

What is expected?

正常删除

What is actually happening?

出错

Environment Info
antd 4.0.0-alpha.2
React 16.9.0
System osx
Browser chrome
@afc163 afc163 added the 4.x In Ant Design 4.0 label Sep 15, 2019
@zombieJ zombieJ added the 🐛 Bug Ant Design Team had proved that this is a bug. label Sep 15, 2019
@zombieJ zombieJ assigned zombieJ and unassigned yutingzhao1991 Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x In Ant Design 4.0 🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

4 participants