Fixes image preview not closing on escape click

pull/4098/head^2
navedqb 2023-07-01 23:10:49 +05:30 committed by GitHub
parent f4ba20b222
commit b79691cc10
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);