From d9f9431bf88794483e6a3dbdace9f106a86647d5 Mon Sep 17 00:00:00 2001 From: lacksfish Date: Mon, 22 Jan 2024 14:32:52 +0100 Subject: [PATCH] amend copy fallback --- src/app/shared/directive/clipboard.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/directive/clipboard.directive.ts b/src/app/shared/directive/clipboard.directive.ts index 4ecef5796..534b180e5 100644 --- a/src/app/shared/directive/clipboard.directive.ts +++ b/src/app/shared/directive/clipboard.directive.ts @@ -25,7 +25,7 @@ export class ClipboardDirective { private copyUsingFallbackMethod(): void { const input = document.createElement('textarea'); - input.innerHTML = this.payload; + input.innerText = this.payload; document.body.appendChild(input); input.select();