mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-27 11:06:50 +03:00
Fix card & file drop issues
Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
parent
95ea34d27a
commit
c5f7d6d1e9
@ -36,14 +36,15 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e.preventDefault()
|
||||||
|
e.stopPropagation()
|
||||||
|
|
||||||
const list = e.dataTransfer?.files
|
const list = e.dataTransfer?.files
|
||||||
if (list === undefined || list.length === 0) return
|
if (list === undefined || list.length === 0) return
|
||||||
|
|
||||||
loading++
|
loading++
|
||||||
try {
|
try {
|
||||||
await createAttachments(client, list, { objectClass, objectId, space })
|
await createAttachments(client, list, { objectClass, objectId, space })
|
||||||
e.preventDefault()
|
|
||||||
e.stopPropagation()
|
|
||||||
} finally {
|
} finally {
|
||||||
loading--
|
loading--
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user