aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2024-02-04 14:03:04 +0100
committernextcloud-command <nextcloud-command@users.noreply.github.com>2024-02-04 20:52:06 +0000
commit441651c22a90bb39aa1c4a31e26edbb722ddef41 (patch)
tree1dc44ecf73f16d98bccf35419c1a5e878a2c5e9e /apps
parent67e79485fac08fe7b7865dc3f44af1c481a3f754 (diff)
downloadnextcloud-server-441651c22a90bb39aa1c4a31e26edbb722ddef41.tar.gz
nextcloud-server-441651c22a90bb39aa1c4a31e26edbb722ddef41.zip
fix(files): drag leave detection on safari
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/src/components/DragAndDropNotice.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/src/components/DragAndDropNotice.vue b/apps/files/src/components/DragAndDropNotice.vue
index 22de0f662de..c05c38408b2 100644
--- a/apps/files/src/components/DragAndDropNotice.vue
+++ b/apps/files/src/components/DragAndDropNotice.vue
@@ -126,7 +126,7 @@ export default defineComponent({
// only when we're leaving the current element
// Avoid flickering
const currentTarget = event.currentTarget as HTMLElement
- if (currentTarget?.contains(event.relatedTarget as HTMLElement)) {
+ if (currentTarget?.contains((event.relatedTarget || event.target) as HTMLElement)) {
return
}