Dialog: fix closeOnPressEsc

pull/4724/head
Leopoldthecoder 2017-05-05 19:33:04 +08:00 committed by 杨奕
parent 2fbe685506
commit cbb3fa095f
1 changed files with 1 additions and 0 deletions

View File

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