-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(files): prevent dragging previews and appear as an external files DnD #42840
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That almost looks like a feature !
Isn't the fix a bit hacky? Is this method really made for those use cases?
Can we use that instead? https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable
I think it's actually the cleanest approach. We want to clear all data if the drag comes from an internal file. If I add the Cleanest is to only carry the dragging event imho :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I think I get the fix now, it makes sense :).
Hello all, thank you for the fix. I see this is marked for NC 29. As this is disturbing the use of NC 28, wouldn't it be wise to push it for the next maintenance release of NC28 ? |
@pierre-alain-b master is 29, this will get backported to 28 after merge |
/skjnldsv-backport to stable28 |
3b38d3b
to
0695718
Compare
… DnD Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
/compile |
1 similar comment
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Fix #42751
If you drag the preview, the event will carry the image as File data.
This fixes that issue. Now every
FileEntry
drag will appear as internal and NOT show the Drop areaBefore:
296437576-f7f62e48-af9d-4484-978d-b6f0bc16fc85.mp4