Skip to content

Commit

Permalink
fix(Dialog): pass event to onClose of Dialog.show, close #947
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed Aug 1, 2019
1 parent 57f7b2f commit 9921578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dialog/show.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ class Modal extends Component {
};

wrapper(fn, callback) {
return () => {
const res = fn();
return (...args) => {
const res = fn(...args);
if (res && res.then) {
this.loading(true);

Expand Down

0 comments on commit 9921578

Please sign in to comment.