mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
38a7a87690
onRemove will be executed when removing file button is clicked, remove event will be prevented when return value is false. But, if we want't to popup a confirm dialog, it can't block the execution of onRemove. So, I add Promise support for onRemove. The return value of onRemove now can be a Promise, and the handleRemove function in Upload can wait for the non-blocking confirm dialog. |
||
---|---|---|
.. | ||
__tests__ | ||
demo | ||
style | ||
Dragger.tsx | ||
index.en-US.md | ||
index.tsx | ||
index.zh-CN.md | ||
interface.tsx | ||
Upload.tsx | ||
UploadList.tsx | ||
utils.tsx |