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 bc4aca9 commit ef0c4f8Copy full SHA for ef0c4f8
packages/core/useClipboard/index.ts
@@ -114,6 +114,7 @@ export function useClipboard(options: UseClipboardOptions<MaybeRefOrGetter<strin
114
ta.value = value
115
ta.style.position = 'absolute'
116
ta.style.opacity = '0'
117
+ ta.setAttribute('readonly', '')
118
document.body.appendChild(ta)
119
ta.select()
120
document.execCommand('copy')
0 commit comments