Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用antd": "4.22.4", 剪裁弹窗点击取消后仍然会触发onChange事件进行上传操作 #263

Closed
sanxyzhang opened this issue Nov 23, 2023 · 4 comments

Comments

@sanxyzhang
Copy link

No description provided.

@nanxiaobei
Copy link
Owner

nanxiaobei commented Nov 23, 2023

可依照下文,尝试在 onModalCancel 中手动调用 resolve(Upload.LIST_IGNORE)

#259 (comment)

@sanxyzhang
Copy link
Author

并不会生效,仍然会触发onChange事件。

@nanxiaobei
Copy link
Owner

nanxiaobei commented Nov 23, 2023

我刚试了一下 antd@4.22.4 + antd-img-crop 最新版,是正常的。
看一下 antd-img-crop 是否是最新版,如果还有问题,可以提供一个可复现的在线 demo。

@nanxiaobei
Copy link
Owner

@sanxyzhang 4.21.0 中已修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants