projectstorm / react-diagrams

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

Added call fireEvent when link was removed #918

Closed ToTheHit closed 2 years ago

ToTheHit commented 2 years ago

Checklist

What?

After merge this (https://github.com/projectstorm/react-diagrams/pull/914) PR into Master, I got problem with detect count of links for ports. Before it I used listener linksUpdated and each link had fields sourcePort and targetPort, but now are no there.

How?

Links already have method fireEvent and I just used it :)

Feel good image:

image