Skip to content

Commit

Permalink
fix(useClipboard): use raw source
Browse files Browse the repository at this point in the history
  • Loading branch information
Doctor-wu committed Oct 16, 2023
1 parent 207ed0e commit eb1411a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useClipboard/index.ts
Expand Up @@ -80,7 +80,7 @@ export function useClipboard(options: UseClipboardOptions<MaybeRefOrGetter<strin
legacy = false,
transform2ClipboardItems = (source) => {
const type = 'text/plain'
const blob = new Blob([toValue(source)], { type })
const blob = new Blob([source], { type })
return [
new ClipboardItem({ [type]: blob }),
]
Expand Down

0 comments on commit eb1411a

Please sign in to comment.