mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 23:38:09 +09:00
chore(client): check textarea exists
This commit is contained in:
parent
4a55a4ec50
commit
9eef655f7a
@ -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 New Issue
Block a user