antvis/G6



The issue has been closed
在 node:drop 或 drop 事件中执行 removeItem 报错 #5278
Alex0zeng posted onGitHub
G6 版本
4.x
问题描述
v4.8.23版本中在node:drop 或 drop事件回调中执行graph.removeItem 报错,重现链接是在其他issuer中看到的类似问题的重现
重现链接
https://codesandbox.io/p/sandbox/g6-tuo-zhuai-shan-chu-forked-5bi7eb?file=%2Findex.html%3A89%2C29
重现步骤
将节点拖入另一个节点中后在触发的事件回调node:drop 或drop中执行graph.removeItem删除操作
预期行为
可以正常删除被拖入的节点
平台
- 操作系统: [Windows]
- 网页浏览器: [Google Chrome]
- G6 版本: [v4.8.23 ]
屏幕截图或视频(可选)
补充说明(可选)
No response