antd-img-crop 4.19.0 → 4.20.0

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.
@@ -189,7 +189,7 @@ const ImgCrop = react.forwardRef((props, cropperRef) => {
189
189
  // https://github.com/ant-design/ant-design/blob/master/components/upload/Upload.tsx#L152-L178
190
190
  const result = yield beforeUpload(file, [file]);
191
191
  if (result === false) {
192
- reject(file);
192
+ reject(rawFile);
193
193
  return;
194
194
  }
195
195
  resolve((result !== true && result) || rawFile);
@@ -187,7 +187,7 @@ const ImgCrop = forwardRef((props, cropperRef) => {
187
187
  // https://github.com/ant-design/ant-design/blob/master/components/upload/Upload.tsx#L152-L178
188
188
  const result = yield beforeUpload(file, [file]);
189
189
  if (result === false) {
190
- reject(file);
190
+ reject(rawFile);
191
191
  return;
192
192
  }
193
193
  resolve((result !== true && result) || rawFile);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-img-crop",
3
- "version": "4.19.0",
3
+ "version": "4.20.0",
4
4
  "description": "An image cropper for Ant Design Upload",
5
5
  "keywords": [
6
6
  "react",