From e2bbe4eb20abfe558a02447de876bc9069181efc Mon Sep 17 00:00:00 2001 From: Tobias Priesching Date: Sun, 29 Nov 2020 13:13:06 +0100 Subject: [PATCH] fix reconnecting in hierarchy --- src/main/components/uml-element/connectable/connectable.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/components/uml-element/connectable/connectable.tsx b/src/main/components/uml-element/connectable/connectable.tsx index 780063b67..93ba25ee1 100644 --- a/src/main/components/uml-element/connectable/connectable.tsx +++ b/src/main/components/uml-element/connectable/connectable.tsx @@ -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(); } };