mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-03 20:58:09 +08:00
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.js
This commit is contained in:
parent
f2e8586f1a
commit
627e6cffaa
@ -157,7 +157,7 @@ const PopupManager = {
|
||||
const instance = PopupManager.getInstance(topItem.id);
|
||||
if (instance.closeOnPressEscape) {
|
||||
instance.$emit('update:visible', false);
|
||||
instance.close();
|
||||
(instance.handleClose) ? instance.handleClose() : (instance.handleAction ? instance.handleAction('cancel') : instance.close());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user