mirror of https://github.com/ElemeFE/element
key.esc no modal and msgbox with promises (#4819)
* Update popup-manager.js keydown esc, when modal has beforeClose function * Update popup-manager.js msgBox.then * Update popup-manager.jspull/4851/head
parent
f2e8586f1a
commit
627e6cffaa
|
@ -157,7 +157,7 @@ const PopupManager = {
|
||||||
const instance = PopupManager.getInstance(topItem.id);
|
const instance = PopupManager.getInstance(topItem.id);
|
||||||
if (instance.closeOnPressEscape) {
|
if (instance.closeOnPressEscape) {
|
||||||
instance.$emit('update:visible', false);
|
instance.$emit('update:visible', false);
|
||||||
instance.close();
|
(instance.handleClose) ? instance.handleClose() : (instance.handleAction ? instance.handleAction('cancel') : instance.close());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue