Closed ZerosLifeCycle closed 1 year ago
this can not be reproduced. please provide a online reproducible demo.
It's because that beforeUpload
returns false
in your demo.
In this line https://github.com/nanxiaobei/antd-img-crop/blob/main/src/ImgCrop.tsx#L260
code will stop at here, so onModalOk
will not execute.
the callback function onModalOk is not working. but onModalCancel is working. I need to do some logic in onModalOk function...
antd: 5.0.0 antd-img-crop: 4.5.1 or 4.5.0 or 4.4.0