From 5e1e7daeb75f871215afc08f15330de6b87033bf Mon Sep 17 00:00:00 2001 From: Kadir Boylu Date: Mon, 30 Oct 2023 14:13:17 +0300 Subject: [PATCH] fix: add closeOnEscape for onContentKeydown #4712 https://github.com/primefaces/primevue/issues/4712 --- 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 7d9e04edf..b25749a80 100755 --- a/components/lib/overlaypanel/OverlayPanel.vue +++ b/components/lib/overlaypanel/OverlayPanel.vue @@ -168,7 +168,7 @@ export default { } }, onContentKeydown(event) { - if (event.code === 'Escape') { + if (event.code === 'Escape' && this.closeOnEscape) { this.hide(); DomHandler.focus(this.target); }