Skip to content
Snippets Groups Projects
Commit f512b294 authored by syuilo's avatar syuilo
Browse files

chore(client): check textarea exists

parent 1461da30
No related branches found
No related tags found
No related merge requests found
......@@ -341,8 +341,10 @@ function addTag(tag: string) {
}
function focus() {
textareaEl.focus();
textareaEl.setSelectionRange(textareaEl.value.length, textareaEl.value.length);
if (textareaEl) {
textareaEl.focus();
textareaEl.setSelectionRange(textareaEl.value.length, textareaEl.value.length);
}
}
function chooseFileFrom(ev) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment