MessageBox: fix multi alert bug

This commit is contained in:
kingwl 2017-01-12 17:34:11 +08:00 committed by 杨奕
parent d96b585363
commit d5f4603f59

View File

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