fix: add closeOnEscape for onContentKeydown
#4712 https://github.com/primefaces/primevue/issues/4712pull/4713/head
parent
851103fac9
commit
5e1e7daeb7
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue