projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

Clicking on port creates stray edge #991

Open sswatson opened 1 year ago

sswatson commented 1 year ago

Clicking on a port sometimes creates an edge to the top left of the canvas (the point (0, 0), I think).

You can observe this behavior in the demo: http://projectstorm.cloud/react-diagrams/?path=/story/customization--custom-diamond-node. Just click on one of the corner ports on the custom diamond node.

Is there a way to prevent this behavior?