Skip to content

Commit 53a1853

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy