From dd9f637f0235245ba02a1aacaead5cb7b8171ac8 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 5 Jul 2023 15:59:50 +0200 Subject: [PATCH] :bug: Fix problem with comments mode not staying --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/left_toolbar.cljs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 3edd75555..0530a0bcf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -44,6 +44,7 @@ - Fix incorrect uri generation issues on share-link modal [Taiga #5564](https://tree.taiga.io/project/penpot/issue/5564) - Fix cache issues with share-links [Taiga #5559](https://tree.taiga.io/project/penpot/issue/5559) - Makes height priority for the rows/columns grids [#2774](https://github.com/penpot/penpot/issues/2774) +- Fix problem with comments mode not staying [#3363](https://github.com/penpot/penpot/issues/3363) ### :arrow_up: Deps updates diff --git a/frontend/src/app/main/ui/workspace/left_toolbar.cljs b/frontend/src/app/main/ui/workspace/left_toolbar.cljs index 6728f863b..c0b4bce21 100644 --- a/frontend/src/app/main/ui/workspace/left_toolbar.cljs +++ b/frontend/src/app/main/ui/workspace/left_toolbar.cljs @@ -81,7 +81,11 @@ (let [tool (-> (dom/get-current-target event) (dom/get-data "tool") (keyword))] - (st/emit! :interrupt (dw/select-for-drawing tool))))) + (st/emit! :interrupt + dw/clear-edition-mode) + + ;; Delay so anything that launched :interrupt can finish + (st/emit! 100 (dw/select-for-drawing tool))))) toggle-text-palette (mf/use-fn