diff --git a/packages/copy-to-clipboard/lib/CopyText.ts b/packages/copy-to-clipboard/lib/CopyText.ts index 8518aa1..28a0ff1 100644 --- a/packages/copy-to-clipboard/lib/CopyText.ts +++ b/packages/copy-to-clipboard/lib/CopyText.ts @@ -23,7 +23,6 @@ const copyText = (text: string) => { if (!success) { throw new Error("copy command was unsuccessful"); } - body.removeChild(copyElement); } catch (err) { console.error("unable to copy using execCommand: ", err);