Fixes image preview not closing on escape click
parent
f4ba20b222
commit
b79691cc10
|
@ -120,7 +120,7 @@ export default {
|
||||||
onMaskKeydown(event) {
|
onMaskKeydown(event) {
|
||||||
switch (event.code) {
|
switch (event.code) {
|
||||||
case 'Escape':
|
case 'Escape':
|
||||||
this.onMaskClick();
|
this.hidePreview();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
DomHandler.focus(this.$refs.previewButton);
|
DomHandler.focus(this.$refs.previewButton);
|
||||||
}, 25);
|
}, 25);
|
||||||
|
|
Loading…
Reference in New Issue