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:
Maurice
2026-11-26 11:03:21 +01:00
parent 756eae39ff
commit d83e98366b
4 changed files with 45 additions and 50 deletions
@@ -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) => {