From 95e726bd6fefb4d6d4fb22f81a066867073e5d09 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Thu, 12 Mar 2020 18:31:53 +0100 Subject: [PATCH] cancel text via doubleclick when in multiElement mode (#926) --- src/components/App.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/App.tsx b/src/components/App.tsx index 2305488e..c25962dc 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -779,6 +779,12 @@ export class App extends React.Component { private handleCanvasDoubleClick = ( event: React.MouseEvent, ) => { + // case: double-clicking with arrow/line tool selected would both create + // text and enter multiElement mode + if (this.state.multiElement) { + return; + } + resetCursor(); const { x, y } = viewportCoordsToSceneCoords(