mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
drag and drop only one file
This commit is contained in:
parent
80afe0fae0
commit
173ba9bf23
@ -77,9 +77,7 @@ const FileThumbnail = ({
|
||||
type: 'file',
|
||||
fileId: file.id,
|
||||
fileName: file.name,
|
||||
selectedFiles: selectionMode && selectedFiles.includes(file.id)
|
||||
? selectedFiles
|
||||
: [file.id]
|
||||
selectedFiles: [file.id] // Always drag only this file, ignore selection state
|
||||
}),
|
||||
onDragStart: () => {
|
||||
setIsDragging(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user