chore(client): check textarea exists
This commit is contained in:
parent
1461da309f
commit
f512b29443
|
@ -341,9 +341,11 @@ function addTag(tag: string) {
|
|||
}
|
||||
|
||||
function focus() {
|
||||
if (textareaEl) {
|
||||
textareaEl.focus();
|
||||
textareaEl.setSelectionRange(textareaEl.value.length, textareaEl.value.length);
|
||||
}
|
||||
}
|
||||
|
||||
function chooseFileFrom(ev) {
|
||||
selectFiles(ev.currentTarget ?? ev.target, i18n.ts.attachFile).then(files_ => {
|
||||
|
|
Loading…
Reference in New Issue