Commit d5f4603f authored by kingwl's avatar kingwl Committed by 杨奕

MessageBox: fix multi alert bug

parent d96b5853
...@@ -87,6 +87,12 @@ const showNextMsg = () => { ...@@ -87,6 +87,12 @@ const showNextMsg = () => {
if (options.callback === undefined) { if (options.callback === undefined) {
instance.callback = defaultCallback; instance.callback = defaultCallback;
} }
let oldCb = instance.callback;
instance.callback = action => {
oldCb(action);
showNextMsg();
};
['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape'].forEach(prop => { ['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape'].forEach(prop => {
if (instance[prop] === undefined) { if (instance[prop] === undefined) {
instance[prop] = true; instance[prop] = true;
......
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