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] 可拖拽时,拖拽完成之后展开收起状态异常 #2819

Open
zcy97 opened this issue Mar 28, 2024 · 1 comment
Open

[Tree] 可拖拽时,拖拽完成之后展开收起状态异常 #2819

zcy97 opened this issue Mar 28, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@zcy97
Copy link

zcy97 commented Mar 28, 2024

tdesign-react 版本

1.5.4

重现链接

https://stackblitz.com/edit/react-bzzkra?file=src%2Findex.js

重现步骤

将2.2拖到2.1之后,2.1的展开收起异常,如图
11111

看了下代码,在拖拽完更新store里面treeData的时候,只给node的children赋值,没有给data赋值children
1111111

导致判断添加treeNodeOpen时出问题了,这里判断不知是否可以改成直接用node.children还是说之前stroe里面的update有bug
屏幕截图 2024-03-28 194008

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @zcy97,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

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