forked from Mirrors/elk
fix: paste on publish widget
This commit is contained in:
parent
9485830da2
commit
2422c809e0
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ let isUploading = $ref<boolean>(false)
|
||||||
|
|
||||||
async function handlePaste(evt: ClipboardEvent) {
|
async function handlePaste(evt: ClipboardEvent) {
|
||||||
const files = evt.clipboardData?.files
|
const files = evt.clipboardData?.files
|
||||||
if (!files)
|
if (!files || files.length === 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
|
|
Loading…
Reference in a new issue