We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84c6f44 commit 8db2409Copy full SHA for 8db2409
webview-ui/src/components/history/CopyButton.tsx
@@ -16,12 +16,9 @@ export const CopyButton = ({ itemTask }: CopyButtonProps) => {
16
const onCopy = useCallback(
17
(e: React.MouseEvent) => {
18
e.stopPropagation()
19
- const tempDiv = document.createElement("div")
20
- tempDiv.innerHTML = itemTask
21
- const text = tempDiv.textContent || tempDiv.innerText || ""
22
23
if (!isCopied) {
24
- copy(text)
+ copy(itemTask)
25
}
26
},
27
[isCopied, copy, itemTask],
0 commit comments