Skip to content

Commit

Permalink
fix(files): better null relatedTarget event detection
Browse files Browse the repository at this point in the history
Co-authored-by: Ferdinand Thiessen <[email protected]>

Signed-off-by: John Molakvoæ <[email protected]>

Signed-off-by: nextcloud-command <[email protected]>

Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
skjnldsv authored and nextcloud-command committed Feb 5, 2024
1 parent a1662d8 commit ff5d0f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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 || event.target) as HTMLElement)) {
if (currentTarget?.contains((event.relatedTarget ?? event.target) as HTMLElement)) {
return
}

Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit ff5d0f3

Please sign in to comment.