react-digraph
react-digraph copied to clipboard
Node and edges position not updating on edge creation
Describe the bug When creating a new edge, the position of previous nodes and edges is not updated instantly. See here. You need to hover over a node to update its position, and drag it to update the position of connected edges.
To Reproduce Steps to reproduce the behavior:
- Clone the repo
- Run npm install
- Run npm run serve
- Select Vertical Tree as layout (may be unnecessary)
- Add an edge from Node E (6) to Node D (4)
You can also do 6. Add a node 7. Link Node E (6) to this newly created node
Expected behavior Position of edges and nodes should be updated instantly
Screenshots https://gfycat.com/pleasingcavernousleafwing
Desktop (please complete the following information):
- OS: macOS Catalina v10.15.5
- Browser: Brave
- Version 1.10.97 Chromium: 83.0.4103.116 (Official Build) (64-bit)
Additional context Add any other context about the problem here.
I can confirm this with same setup (Vertical Tree layout)