Skip to content

Commit 53a1853

Browse files
committed
Update file-attachment-element.ts
1 parent 4f207bf commit 53a1853

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/file-attachment-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const images = /^image\/(gif|png|jpeg)$/
116116

117117
function pastedFile(items: DataTransferItemList): File | null {
118118
for (const item of items) {
119-
if (images.test(item.type)) {
119+
if (item.kind === 'file' && images.test(item.type)) {
120120
return item.getAsFile()
121121
}
122122
}

0 commit comments

Comments
 (0)