From 3f3955e04bcc749f3e6fdc7454a1cf3cbc83db32 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 17 Mar 2024 02:04:27 +0100 Subject: [PATCH 1/2] fix(files): Adjust files drop to work with Blink engine (chrom(ium), edge) The datatransfer items list is cleared on Blink after the first access to an inner prop due to async handling and GC. Signed-off-by: Ferdinand Thiessen --- .../src/components/DragAndDropNotice.vue | 1 + apps/files/src/services/DropService.ts | 30 +++++---- cypress/e2e/files/drag-n-drop.cy.ts | 62 +++++++++++++++++++ 3 files changed, 81 insertions(+), 12 deletions(-) create mode 100644 cypress/e2e/files/drag-n-drop.cy.ts diff --git a/apps/files/src/components/DragAndDropNotice.vue b/apps/files/src/components/DragAndDropNotice.vue index a9c1d8e99aded..f9b830ca755e6 100644 --- a/apps/files/src/components/DragAndDropNotice.vue +++ b/apps/files/src/components/DragAndDropNotice.vue @@ -22,6 +22,7 @@ -->