From b0fa143adb9b74f768c8297f9c3764d8d8dff25a Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 25 Oct 2023 18:27:30 +0300 Subject: [PATCH] Fixed #4693 - OverlayPanel: closeOnEscape broken --- components/lib/overlaypanel/OverlayPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } },