mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-14 18:46:19 +02:00
add check on editorWithFocus before using it.
This commit is contained in:
@ -342,8 +342,10 @@ runBtn, searchInput
|
|||||||
} else {
|
} else {
|
||||||
searchInput.value = '';
|
searchInput.value = '';
|
||||||
// Give last focused editor, focus again
|
// Give last focused editor, focus again
|
||||||
|
if (editorWithFocus) {
|
||||||
editorWithFocus.focus();
|
editorWithFocus.focus();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
document.body.classList[isSavedItemsPaneOpen ? 'add' : 'remove']('overlay-visible');
|
document.body.classList[isSavedItemsPaneOpen ? 'add' : 'remove']('overlay-visible');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user