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])))