Msgbox: fix second param not passed to callback

This commit is contained in:
Leopoldthecoder
2017-03-16 10:07:37 +08:00
committed by 杨奕
parent e09d7c74a4
commit 09761ca59b

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 => {