mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-22 13:16:57 +01:00
chore(client): check textarea exists
This commit is contained in:
parent
1461da309f
commit
f512b29443
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue