Skip to content

Commit

Permalink
fix reconnecting in hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasPr committed Nov 29, 2020
1 parent b472ed1 commit e2bbe4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/components/uml-element/connectable/connectable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ export const connectable = (
if (this.props.connecting) {
this.props.connect({ element: this.props.id, direction });
}
if (this.props.reconnecting) {
if (this.props.reconnecting && !event.defaultPrevented) {
this.props.reconnect({ element: this.props.id, direction });
event.preventDefault();
}
};

Expand Down

0 comments on commit e2bbe4e

Please sign in to comment.