Msgbox: fix second param not passed to callback

pull/3596/head
Leopoldthecoder 2017-03-16 10:07:37 +08:00 committed by 杨奕
parent e09d7c74a4
commit 09761ca59b
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ const showNextMsg = () => {
}
let oldCb = instance.callback;
instance.callback = action => {
oldCb(action);
instance.callback = (action, instance) => {
oldCb(action, instance);
showNextMsg();
};
['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape'].forEach(prop => {