Fixes image preview not closing on escape click

This commit is contained in:
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

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);