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

n-tree error when move children outside #2597

Closed
moolex opened this issue Mar 9, 2022 · 3 comments
Closed

n-tree error when move children outside #2597

moolex opened this issue Mar 9, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@moolex
Copy link

moolex commented Mar 9, 2022

TuSimple/naive-ui version (版本)

2.26.3

Vue version (Vue 版本)

3.2.31

Browser and its version (浏览器及其版本)

Chrome(99.0.4844.51)

System and its version (系统及其版本)

MacOS(12.2.1)

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/quizzical-cartwright-euhcpr?file=/src/App.vue

Reappearance steps (重现步骤)

move children outside will cause n-tree error "Cannot read properties of undefined (reading 'forEach')"

Expected results (期望的结果)

n-tree should works when remove children by change source data

Actual results (实际的结果)

it doesn't works

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Mar 9, 2022
@Talljack
Copy link
Contributor

How to reproduce? Did you click move children to top?

@moolex
Copy link
Author

moolex commented Mar 10, 2022

How to reproduce? Did you click move children to top?

Yes, by click move children to top, it will cause errors

image

@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Mar 10, 2022
@07akioni
Copy link
Collaborator

07akioni commented Mar 10, 2022

醉了,这个和动画的逻辑也相关

jaulz pushed a commit to jaulz/naive-ui that referenced this issue Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants