Skip to content

Commit 6c4294d

Browse files
authored
refactor(useClipboard): remove redundant nullish coalescing in legacyCopy (#5078)
1 parent c3429c9 commit 6c4294d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/useClipboard/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function useClipboard(options: UseClipboardOptions<MaybeRefOrGetter<strin
111111

112112
function legacyCopy(value: string) {
113113
const ta = document.createElement('textarea')
114-
ta.value = value ?? ''
114+
ta.value = value
115115
ta.style.position = 'absolute'
116116
ta.style.opacity = '0'
117117
document.body.appendChild(ta)

0 commit comments

Comments
 (0)