Dialog: fix closeOnPressEsc

This commit is contained in:
Leopoldthecoder 2017-05-05 19:33:04 +08:00 committed by 杨奕
parent 2fbe685506
commit cbb3fa095f

View File

@ -156,6 +156,7 @@ const PopupManager = {
if (!topItem) return;
const instance = PopupManager.getInstance(topItem.id);
if (instance.closeOnPressEscape) {
instance.$emit('update:visible', false);
instance.close();
}
}