From 88dc777a10e68f08d74b78724a62214efbd7ee4f 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 | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/apps/files/src/components/DragAndDropNotice.vue b/apps/files/src/components/DragAndDropNotice.vue index 40f95f54aebbe..5d125e3b6cde4 100644 --- a/apps/files/src/components/DragAndDropNotice.vue +++ b/apps/files/src/components/DragAndDropNotice.vue @@ -45,11 +45,13 @@