antvis/G6

Do you want to work on this issue?
You can request for a bounty in order to promote it!
[Bug]: mindmap demo collapse bug #6713
Nakexn posted onGitHub
Describe the bug / 问题描述
- 根节点的展开收起按钮错位并且不可见
- 根节点收起再展开后,其他已收起的节点展开功能失效
Reproduction link / 复现链接
https://g6.antv.antgroup.com/examples/scene-case/tree-graph#mindmap
Steps to Reproduce the Bug or Issue / 重现步骤
- 收起 Classification 节点
<img width="1903" alt="image" src="https://github.com/user-attachments/assets/39649046-f858-4e64-8206-7ef5e1e06c0d" />
- 收起根节点(按钮不可见,在图中所示位置)
<img width="1905" alt="image" src="https://github.com/user-attachments/assets/f2798f8b-6435-4950-9b59-6db961862e28" />
- 展开根节点(按钮不可见,还是在上述位置)
<img width="1905" alt="image" src="https://github.com/user-attachments/assets/f2798f8b-6435-4950-9b59-6db961862e28" />
- 点击 Classification 节点的展开按钮,无法展开
<img width="1915" alt="image" src="https://github.com/user-attachments/assets/e92724f3-845c-4662-bb39-fca02ca0fda2" />
G6 Version / G6 版本
Please select / 请选择
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他