antd-img-crop 4.14.0 → 4.15.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.
@@ -186,7 +186,7 @@ const ImgCrop = react.forwardRef((props, cropperRef) => {
186
186
  if (typeof cb.current.beforeCrop === 'function') {
187
187
  try {
188
188
  const result = yield cb.current.beforeCrop(file, fileList);
189
- if (result !== true) {
189
+ if (result === false) {
190
190
  return resolve(file);
191
191
  }
192
192
  }
@@ -184,7 +184,7 @@ const ImgCrop = forwardRef((props, cropperRef) => {
184
184
  if (typeof cb.current.beforeCrop === 'function') {
185
185
  try {
186
186
  const result = yield cb.current.beforeCrop(file, fileList);
187
- if (result !== true) {
187
+ if (result === false) {
188
188
  return resolve(file);
189
189
  }
190
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-img-crop",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
4
4
  "description": "An image cropper for Ant Design Upload",
5
5
  "keywords": [
6
6
  "react",