Skip to content

Commit

Permalink
Merge pull request #5354 from bcgov/test-rook-RQ-FOIMOD-3300
Browse files Browse the repository at this point in the history
disable drag and drop for observation #28 in FOIMOD-3300
  • Loading branch information
richard-aot authored Aug 9, 2024
2 parents 8b9e3da + b736a08 commit 85abaff
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,14 @@ const FileUploadForMCFPersonal = ({
};
const fileDrop = (e) => {
e.preventDefault();
const newFiles = e.dataTransfer.files;
const totalNoOfFiles = Object.entries(files).length + newFiles.length;
validateFiles(newFiles, totalNoOfFiles);

if(modalFor === "add" && (!isPersonSelected || ((isMinistryCoordinator && tagValue == "")))) {
return
} else {
const newFiles = e.dataTransfer.files;
const totalNoOfFiles = Object.entries(files).length + newFiles.length;
validateFiles(newFiles, totalNoOfFiles);
}
}
const removeFile = (fileName) => {
const _file = files[fileName];
Expand Down

0 comments on commit 85abaff

Please sign in to comment.