optimized-react-component-library-xyz123 0.19.12 → 0.19.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -623,7 +623,6 @@ var SelectedFiles = ({
623
623
  let e = { target: { value: `${newCountOfFiles} files`, files: newFiles } };
624
624
  const targetValue = e.target.value === "0 files" ? "" : e.target.value;
625
625
  e = { ...e, target: { ...e.target, value: targetValue } };
626
- console.log("Removing file, new e:", JSON.stringify(e));
627
626
  isTouched(e, questionObject);
628
627
  removeFile(newCountOfFiles);
629
628
  };
@@ -909,19 +908,14 @@ var AddFiles = ({
909
908
  });
910
909
  };
911
910
  useEffect5(() => {
912
- let e;
913
911
  if (newFiles.length > 0) {
914
912
  const currentFiles = questionObject.files ? questionObject.files : [];
915
- e = {
913
+ const e = {
916
914
  target: {
917
915
  value: currentFiles.length + newFiles.length > 0 ? `${currentFiles.length + newFiles.length} files` : "",
918
916
  files: [...currentFiles, ...newFiles]
919
917
  }
920
918
  };
921
- console.log("Files added 1:", JSON.stringify(e));
922
- const targetValue = e.target.value === "0 files" ? "" : e.target.value;
923
- e = { ...e, target: { ...e.target, value: targetValue } };
924
- console.log("Files added 2:", JSON.stringify(e));
925
919
  handleQuestionInputChange(e, questionObject);
926
920
  setNumberOfFiles(currentFiles.length + newFiles.length);
927
921
  setNewFiles([]);