From 58f9b2a4e82720d396f06ea0a2a00461045136cc Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 28 Feb 2024 17:51:40 +0100 Subject: [PATCH] :bug: Fix problem with stroke in multi-paragraph texts --- frontend/src/app/main/ui/shapes/text/svg_text.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/shapes/text/svg_text.cljs b/frontend/src/app/main/ui/shapes/text/svg_text.cljs index b608263cf..bb5fe3e0c 100644 --- a/frontend/src/app/main/ui/shapes/text/svg_text.cljs +++ b/frontend/src/app/main/ui/shapes/text/svg_text.cljs @@ -97,7 +97,10 @@ (obj/set! "fill" (str "url(#fill-" index "-" render-id ")")))} (cond-> browser-props (obj/merge! browser-props))) - shape (assoc shape :fills (:fills data))] + shape (assoc shape :fills (:fills data)) + + ;; Need to create new render-id per text-block + render-id (dm/str render-id "-" index)] [:& (mf/provider muc/render-id) {:key index :value render-id} [:& shape-custom-strokes {:shape shape :position index :render-id render-id}