Skip to content

Commit 9921578

Browse files
committed
fix(Dialog): pass event to onClose of Dialog.show, close #947
1 parent 57f7b2f commit 9921578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dialog/show.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ class Modal extends Component {
102102
};
103103

104104
wrapper(fn, callback) {
105-
return () => {
106-
const res = fn();
105+
return (...args) => {
106+
const res = fn(...args);
107107
if (res && res.then) {
108108
this.loading(true);
109109

0 commit comments

Comments
 (0)