Skip to content

Commit 90da137

Browse files
authored
Merge pull request #18 from Ocupuc123/master
2 parents e84e0a9 + 1b6487c commit 90da137

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

js/upload-image.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ const onScaleControlClick = (direction) => {
9393
const onDocumentKeydown = (evt) => {
9494
if (isEscapeKey(evt)) {
9595
evt.preventDefault();
96+
97+
if (document.querySelector('.error')) {
98+
return;
99+
}
100+
96101
closeUpload();
97102
}
98103
};

0 commit comments

Comments
 (0)