Merge pull request #4 from navedqb/4089--fix-image-not-closing-on-escape

fix: fixes image preview not closing on escape click
pull/4098/head
navedqb 2023-07-01 23:14:56 +05:30 committed by GitHub
commit 359b70c69c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ export default {
onMaskKeydown(event) {
switch (event.code) {
case 'Escape':
this.onMaskClick();
this.hidePreview();
setTimeout(() => {
DomHandler.focus(this.$refs.previewButton);
}, 25);