react-dropzone 14.3.3 → 14.3.4

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/es/index.js CHANGED
@@ -701,6 +701,7 @@ export function useDropzone() {
701
701
  dispatch({
702
702
  acceptedFiles: acceptedFiles,
703
703
  fileRejections: fileRejections,
704
+ isDragReject: fileRejections.length > 0,
704
705
  type: "setFiles"
705
706
  });
706
707
 
@@ -965,7 +966,8 @@ function reducer(state, action) {
965
966
  case "setFiles":
966
967
  return _objectSpread(_objectSpread({}, state), {}, {
967
968
  acceptedFiles: action.acceptedFiles,
968
- fileRejections: action.fileRejections
969
+ fileRejections: action.fileRejections,
970
+ isDragReject: action.isDragReject
969
971
  });
970
972
 
971
973
  case "reset":