jsPlumb: Reconnection after Removing Element

If you encounter a bug where all the re-established connections of a deleted div going to the top left of the screen: at the moment there’s no better solution than to delete all connections and repaint everything.

I’m using jsPlumb community version with React. 

Sadly, merely deleting the related connections or endpoints won’t work.

To re-paint everything afresh, use:


After you re-establish all the connections, if it’s necessary to make sure that they are in their right spots, call:


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.