fix: add closeOnEscape for onContentKeydown

#4712
https://github.com/primefaces/primevue/issues/4712
pull/4713/head
Kadir Boylu 2023-10-30 14:13:17 +03:00
parent 851103fac9
commit 5e1e7daeb7
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ export default {
} }
}, },
onContentKeydown(event) { onContentKeydown(event) {
if (event.code === 'Escape') { if (event.code === 'Escape' && this.closeOnEscape) {
this.hide(); this.hide();
DomHandler.focus(this.target); DomHandler.focus(this.target);
} }