mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
refactor(files): drop the drop zone's noClick option, which is its default
Keeps useFileManager within the function length limit now that it names noPaste; react-dropzone's noClick defaults to false, so a click still opens the picker.
This commit is contained in:
@@ -124,7 +124,6 @@ export function useFileManager({ files = [], onUpload, onDelete, onUpdate, place
|
||||
toast.error(t('files.uploadErrorSize', { max: maxUploadMb }))
|
||||
}
|
||||
},
|
||||
noClick: false,
|
||||
// Pasting is handled once for the whole panel (handlePaste), with the upload
|
||||
// permission check; the zone's own paste upload would send each file twice.
|
||||
noPaste: true,
|
||||
|
||||
Reference in New Issue
Block a user