Fixes image preview not closing on escape click
parent
f4ba20b222
commit
b79691cc10
|
@ -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