Commit 09761ca5 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Msgbox: fix second param not passed to callback

parent e09d7c74
...@@ -93,8 +93,8 @@ const showNextMsg = () => { ...@@ -93,8 +93,8 @@ const showNextMsg = () => {
} }
let oldCb = instance.callback; let oldCb = instance.callback;
instance.callback = action => { instance.callback = (action, instance) => {
oldCb(action); oldCb(action, instance);
showNextMsg(); showNextMsg();
}; };
['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape'].forEach(prop => { ['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape'].forEach(prop => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment