Merge pull request #52363 from nextcloud/backport/52296/stable31

[stable31] fix(files): prevent dragging preview when drag-drop
This commit is contained in:
Ferdinand Thiessen 2025-04-23 01:03:20 +02:00 committed by GitHub
commit 20160afd62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -447,7 +447,7 @@ export default defineComponent({
logger.debug('Dropped', { event, folder, selection, fileTree })
// Check whether we're uploading files
if (fileTree.contents.length > 0) {
if (selection.length === 0 && fileTree.contents.length > 0) {
await onDropExternalFiles(fileTree, folder, contents.contents)
return
}

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long