From 9c2dc4adb44730feb75d1fd8ffd9d9aaaf3f1f0c Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Sun, 4 Feb 2024 21:21:20 +0100 Subject: fix(files): better null relatedTarget event detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ferdinand Thiessen Signed-off-by: John Molakvoæ Signed-off-by: nextcloud-command --- apps/files/src/components/DragAndDropNotice.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/src') diff --git a/apps/files/src/components/DragAndDropNotice.vue b/apps/files/src/components/DragAndDropNotice.vue index c05c38408b2..3f7126fac67 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 || event.target) as HTMLElement)) { + if (currentTarget?.contains((event.relatedTarget ?? event.target) as HTMLElement)) { return } -- cgit v1.2.3