mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-29 06:36:45 +10:00
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.