Merge pull request #4 from navedqb/4089--fix-image-not-closing-on-escape
fix: fixes image preview not closing on escape clickpull/4098/head
commit
359b70c69c
|
@ -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…
Reference in New Issue