-
Notifications
You must be signed in to change notification settings - Fork 268
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
Bug: Edges with a target node equaling the source node should display as a loopback edge which can be selected #101
Comments
Hey @ajbogh As far as I understand you'd like the expected behaviour to be that loopback edges are allowed but cannot be created? Right now I have a solution that would allow the creation of these loopback edges through react-digraph. |
That would be great. If you can also create a loopback within the UI then that is perfect. Please include this as a parameter to enable this new functionality so we are backwards compatible. |
I created the PR. Right now the |
Any news on this? Thanks! |
Describe the bug
When an edge's sourceNode and targetNode are the same, currently the edge is rendered as a point with an arrow hanging off it. This point is not selectable, so the edge cannot be deleted.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The edge should be allowed to exist (although there should be no way to create one in react-digraph)
Instead of rendering the edge as a point, make it a line that exits the source node and then returns to the source node in a different position (exit at right, return at top). Provide enough space to allow the user to select the edge for deletion.
The text was updated successfully, but these errors were encountered: