Skip to content

Commit

Permalink
set hover to false before deleting a connection. ensures source/targe…
Browse files Browse the repository at this point in the history
…t nodes have their hover class removed.
  • Loading branch information
sporritt committed May 3, 2017
1 parent 3aae084 commit 60c609e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jsPlumb.js
Expand Up @@ -1449,6 +1449,7 @@
[ _currentInstance, CHECK_CONDITION, [ BEFORE_DETACH, connection ] ]
])) {

connection.setHover(false);
fireDetachEvent(connection, !connection.pending && params.fireEvent !== false, params.originalEvent);

connection.endpoints[0].detachFromConnection(connection);
Expand Down

0 comments on commit 60c609e

Please sign in to comment.