From d170ff84564717a3bfce213772003e14c02d80a0 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 22 Jul 2020 12:19:38 +0200 Subject: [PATCH] :sparkles: Properly check text shape on auto edition mode entering. --- frontend/src/uxbox/main/data/workspace.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/uxbox/main/data/workspace.cljs b/frontend/src/uxbox/main/data/workspace.cljs index 9cbc8e0d1..e2f1b9225 100644 --- a/frontend/src/uxbox/main/data/workspace.cljs +++ b/frontend/src/uxbox/main/data/workspace.cljs @@ -468,8 +468,9 @@ (rx/concat (rx/of (dwc/commit-changes [rchange] [uchange] {:commit-local? true}) (dws/select-shapes (d/ordered-set id))) - (->> (rx/of (start-edition-mode id)) - (rx/observe-on :async))))))) + (when (= :text (:type attrs)) + (->> (rx/of (start-edition-mode id)) + (rx/observe-on :async)))))))) (defn- calculate-centered-box [state aspect-ratio]