You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The part of the source code that causes the error is shown in the figure. The address is https://github.com/antvis/G6/blob/v5/packages/g6/src/behaviors/create-edge.ts#L117. The issue arises because when the addEdge function is triggered, a node is generated. If a node is configured in the config as an HTML/React/JSX node, the generated node will also be the configured node, leading to incorrect positioning. The current workaround is to use function configuration when configuring the React component, so that when the ID generated by add-edge is used, it does not return a DOM node.
Describe the bug / 问题描述
When using custom nodes (html/jsx/react), add to the behaviors.
Parameter. creates edge positioning errors.
Reproduction link / 复现链接
https://g6.antv.vision/zh/examples/element/custom-node#react-node
Steps to Reproduce the Bug or Issue / 重现步骤
By adding the above parameters to the behaviors parameter in the official code, the error bug can be reproduced.
Version / 版本
🆕 5.x
OS / 操作系统
Browser / 浏览器
The text was updated successfully, but these errors were encountered: