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

Tree的受控expanded-keys添加叶节点时出错 #3319

Closed
dntc opened this issue Jul 21, 2022 · 0 comments
Closed

Tree的受控expanded-keys添加叶节点时出错 #3319

dntc opened this issue Jul 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dntc
Copy link

dntc commented Jul 21, 2022

TuSimple/naive-ui version (版本)

2.31.0

Vue version (Vue 版本)

3.2.37

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

Chrome 103.0.5060.134

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

Windows 11

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/quirky-torvalds-opi6kf

Reappearance steps (重现步骤)

鼠标选择一个叶节点,on-update:selected-keys 事件把点击的节点添加到 expanded-keys 属性时会报错。

Expected results (期望的结果)

即便叶节点没有展开状态,但是把叶节点添加到 expanded-keys 时,也不应该直接报错。比较好的处理方式应该是什么也不做,也不报错。

Actual results (实际的结果)

程序出错

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Jul 21, 2022
@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Jul 21, 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

2 participants