1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-28 23:08:17 +09:00

chore(client): check textarea exists

This commit is contained in:
syuilo 2022-02-09 21:27:42 +09:00
parent 1461da309f
commit f512b29443

View File

@ -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) {