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:
patriciussanctus 2017-05-13 17:12:44 +03:00 committed by 杨奕
parent f2e8586f1a
commit 627e6cffaa

View File

@ -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());
}
}
}