mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-03 20:58:09 +08:00
Dialog: fix closeOnPressEsc
This commit is contained in:
parent
2fbe685506
commit
cbb3fa095f
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user