From fc64d5c838099dcdb39426864f0fdb3059debc08 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 23 Aug 2024 19:55:03 +0200 Subject: [PATCH] fix(files): Reset drop notice on firefox On firefox there is an old bug where when you move a dragged file outside the window the `dragleave` event is never emitted. So we just use a timeout to reset the drag over state. Also a small change: Use the ID of the main container instead of relying on tag name and class. (The ID is guranteed as other APIs rely on it, while the class is just used internally). Signed-off-by: Ferdinand Thiessen --- .../src/components/DragAndDropNotice.vue | 39 +++++++++++++++---- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/apps/files/src/components/DragAndDropNotice.vue b/apps/files/src/components/DragAndDropNotice.vue index cc0dc9104b297..72a57deeb2889 100644 --- a/apps/files/src/components/DragAndDropNotice.vue +++ b/apps/files/src/components/DragAndDropNotice.vue @@ -27,17 +27,20 @@