From 4bfd5194f69e8280589ebff9177d7c1c58ffbe02 Mon Sep 17 00:00:00 2001 From: Aitor Moreno Date: Tue, 10 Mar 2026 14:41:50 +0100 Subject: [PATCH] :bug: Fix grow options not verifying text-editor/v2 (#8571) --- .../main/ui/workspace/sidebar/options/menus/text.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs index 3135a815bc..75c0344662 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/text.cljs @@ -137,12 +137,13 @@ (fn [value] (on-blur) (let [uid (js/Symbol) - grow-type (keyword value) - content (when editor-instance - (content/dom->cljs (dwt/get-editor-root editor-instance)))] + grow-type (keyword value)] (st/emit! (dwu/start-undo-transaction uid)) - (when (some? content) - (st/emit! (dwt/v2-update-text-shape-content (first ids) content :finalize? true))) + (when (features/active-feature? @st/state "text-editor/v2") + (let [content (when editor-instance + (content/dom->cljs (dwt/get-editor-root editor-instance)))] + (when (some? content) + (st/emit! (dwt/v2-update-text-shape-content (first ids) content :finalize? true))))) (st/emit! (dwsh/update-shapes ids #(assoc % :grow-type grow-type))) (when (features/active-feature? @st/state "render-wasm/v1")