From 016a18fc0ef563b1d66a1e0a7768b9b51cb45256 Mon Sep 17 00:00:00 2001 From: Amy Chen Date: Mon, 6 Nov 2023 12:14:04 -0800 Subject: [PATCH] remove placeholder image after copying --- src/helpers/utility.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helpers/utility.js b/src/helpers/utility.js index 4b4fcfe3a..8bf34c8fa 100644 --- a/src/helpers/utility.js +++ b/src/helpers/utility.js @@ -298,6 +298,9 @@ export function copySVGImage( if (height && typeof svgElement.setAttribute) { svgElement.setAttribute("height", "100%"); } + setTimeout(() => { + document.body.removeChild(img); + }, 0); resolve(blob); }); }),