mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixes image preview not closing on escape click
This commit is contained in:
parent
f4ba20b222
commit
b79691cc10
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ export default {
|
|||
onMaskKeydown(event) {
|
||||
switch (event.code) {
|
||||
case 'Escape':
|
||||
this.onMaskClick();
|
||||
this.hidePreview();
|
||||
setTimeout(() => {
|
||||
DomHandler.focus(this.$refs.previewButton);
|
||||
}, 25);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue