mirror of https://github.com/ElemeFE/element
MessageBox: fix multi alert bug
parent
d96b585363
commit
d5f4603f59
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue