mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 14:06:00 +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
|
||||
}
|
||||
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
|
||||
const list = e.dataTransfer?.files
|
||||
if (list === undefined || list.length === 0) return
|
||||
|
||||
loading++
|
||||
try {
|
||||
await createAttachments(client, list, { objectClass, objectId, space })
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
} finally {
|
||||
loading--
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user