mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
chore(deps): bump react-dropzone from 14.4.1 to 20.2.1
react-dropzone 19.2 turned on a paste handler of its own on the drop zone. The file panel already uploads pasted files once for the whole panel, after the upload permission check, so a paste while the zone had focus sent every file twice. The zone's paste handling is switched off with noPaste; FE-COMP-FILEMANAGER-039 pastes on the zone itself and expects a single upload. prop-types and loose-envify leave the lockfile with the old version.
This commit is contained in:
@@ -125,6 +125,9 @@ export function useFileManager({ files = [], onUpload, onDelete, onUpdate, place
|
||||
}
|
||||
},
|
||||
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,
|
||||
})
|
||||
|
||||
const handlePaste = useCallback((e: React.ClipboardEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user