From f7fc9bf2456b775f4e00896a21ff0a9bbcd09bea Mon Sep 17 00:00:00 2001 From: agriyadev5 Date: Tue, 13 Jul 2021 15:46:57 +0530 Subject: [PATCH] #262 Shape selection not working as expected with the rectangle / circle tool active --- src/svgcanvas/event.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/svgcanvas/event.js b/src/svgcanvas/event.js index 5283a9d8..7536e703 100644 --- a/src/svgcanvas/event.js +++ b/src/svgcanvas/event.js @@ -877,6 +877,7 @@ export const mouseUpEvent = function (evt) { if (eventContext_.getCurrentMode() === 'path') { svgCanvas.pathActions.toEditMode(element); } else if (eventContext_.getCurConfig().selectNew) { + svgCanvas.setMode('select'); svgCanvas.selectOnly([ element ], true); } // we create the insert command that is stored on the stack