Browse Source
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.pull/5990/head
shlice
8 years ago
committed by
Benjy Cui
3 changed files with 17 additions and 14 deletions
Loading…
Reference in new issue