Skip to content

Commit

Permalink
fix(files): drag leave detection on safari
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv authored and nextcloud-command committed Feb 5, 2024
1 parent 9a0c568 commit a1662d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/src/components/DragAndDropNotice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a1662d8

Please sign in to comment.