From e8a26ef83b3cfcade77e62919ab1f4926921cccc Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 18 Nov 2025 13:05:56 +0100 Subject: [PATCH] :bug: Fix problem with tainted canvas in thumbnails --- frontend/src/app/main/ui/shapes/text.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/shapes/text.cljs b/frontend/src/app/main/ui/shapes/text.cljs index 0b1d47e602..b54af2fc8e 100644 --- a/frontend/src/app/main/ui/shapes/text.cljs +++ b/frontend/src/app/main/ui/shapes/text.cljs @@ -38,5 +38,8 @@ (some? position-data) [:> svg/text-shape props] - (or (nil? position-data) is-component?) + ;; Only use this for component preview, otherwise the dashboard thumbnails + ;; will give a tainted canvas error because the `foreignObject` cannot be + ;; rendered. + (and (nil? position-data) is-component?) [:> fo/text-shape props])))