From 0cb6ecadb6d37a0d5c40320857a0be7202ea56f2 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 20 Dec 2019 22:55:31 +0100 Subject: [PATCH] :bug: Deselect all shapes when new shape is inserted. --- frontend/src/uxbox/main/ui/workspace/drawarea.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/uxbox/main/ui/workspace/drawarea.cljs b/frontend/src/uxbox/main/ui/workspace/drawarea.cljs index 266bbcb5c..28f8b5243 100644 --- a/frontend/src/uxbox/main/ui/workspace/drawarea.cljs +++ b/frontend/src/uxbox/main/ui/workspace/drawarea.cljs @@ -281,7 +281,8 @@ shape) shape (dissoc shape ::initialized? :modifier-mtx)] ;; Add & select the created shape to the workspace - (rx/of (dw/add-shape shape))))))))) + (rx/of dw/deselect-all + (dw/add-shape shape))))))))) (def close-drawing-path (ptk/reify ::close-drawing-path