mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Msgbox: fix second param not passed to callback
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user