0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 15:39:50 -05:00

🐛 Deselect all shapes when new shape is inserted.

This commit is contained in:
Andrey Antukh 2019-12-20 22:55:31 +01:00
parent fee2eea87c
commit 0cb6ecadb6

View file

@ -281,7 +281,8 @@
shape) shape)
shape (dissoc shape ::initialized? :modifier-mtx)] shape (dissoc shape ::initialized? :modifier-mtx)]
;; Add & select the created shape to the workspace ;; 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 (def close-drawing-path
(ptk/reify ::close-drawing-path (ptk/reify ::close-drawing-path