mirror of https://github.com/ElemeFE/element
Dialog: fix closeOnPressEsc
parent
2fbe685506
commit
cbb3fa095f
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue