projectstorm / react-diagrams

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

Link is deleted on right click and canvas is not redrawing after it #655

Open elgrandt opened 4 years ago

elgrandt commented 4 years ago

Hi, I noticed that after right-clicking a link, the link is removed (that shouldn't be happening) and you aren't even redrawing the canvas after the deletion, here the line that I found in the code: https://github.com/projectstorm/react-diagrams/blob/3d71f5a80b7523d28a5a1ef17aef79fa5ef0fc69/packages/react-diagrams-defaults/src/link/DefaultLinkSegmentWidget.tsx#L47 I couldn't find out a reason for that functionality but I'm pretty sure it's an issue.