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] 设置自定义label的render后,setItem修改label后UI不更新 #2978

Open
TeresaRd opened this issue Jul 4, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@TeresaRd
Copy link

TeresaRd commented Jul 4, 2024

tdesign-react 版本

1.7.5

重现链接

https://stackblitz.com/edit/react-9btors-fh6lae?file=src%2Fdemo.tsx

重现步骤

Tree组件设置了label的自定义render后,setItem修改label后,被修改的节点没有渲染新的 label,该场景的其他属性希望也关注下

期望结果

setItem修改属性后,数据和UI都能刷新

实际结果

Tree组件设置了label的自定义render后,setItem修改label后,被修改的节点没有渲染新的 label

框架版本

React 18.2.0

浏览器版本

Chrome 125.0.6422.176

系统版本

MacOS Sonoma 14.5

Node版本

16.19.1

补充说明

No response

Copy link
Contributor

github-actions bot commented Jul 4, 2024

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

@HaixingOoO HaixingOoO added the 💭 discussion we are discussing label Jul 8, 2024
@uyarn uyarn added 🐞 bug Something isn't working and removed 💭 discussion we are discussing labels Jul 11, 2024
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