Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detach event does not update connection list #1049

Open
abombelli opened this issue Jan 17, 2024 · 0 comments
Open

Detach event does not update connection list #1049

abombelli opened this issue Jan 17, 2024 · 0 comments

Comments

@abombelli
Copy link

abombelli commented Jan 17, 2024

When using the event listener detach, and then calling getConnections(), it doe not reflect the new set of connections.

instance.bind("connection:detach", function (info) {
console.log(instance.getConnections());
});

The detached connection is still present in getConnections().

When I add instance.deleteConnection(info.connection); , then instance.getConnections() reflects the correct connections, but it triggers the following error:
[Log] jsPlumb function failed : TypeError: null is not an object (evaluating 't.endpoints[0]') (tool.8358ff.js, line 1)
Any idea why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant