diff --git a/components/lib/overlaypanel/OverlayPanel.vue b/components/lib/overlaypanel/OverlayPanel.vue index a3e47315e..19fdcc1de 100755 --- a/components/lib/overlaypanel/OverlayPanel.vue +++ b/components/lib/overlaypanel/OverlayPanel.vue @@ -192,7 +192,7 @@ export default { } }, onKeyDown(event) { - if (event.code === 'Escape' && this.closeOnEscape) { + if (event.code === 'Escape' || this.closeOnEscape) { this.visible = false; } },