chore(client): check textarea exists
This commit is contained in:
parent
1461da309f
commit
f512b29443
@ -341,8 +341,10 @@ function addTag(tag: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function focus() {
|
function focus() {
|
||||||
textareaEl.focus();
|
if (textareaEl) {
|
||||||
textareaEl.setSelectionRange(textareaEl.value.length, textareaEl.value.length);
|
textareaEl.focus();
|
||||||
|
textareaEl.setSelectionRange(textareaEl.value.length, textareaEl.value.length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function chooseFileFrom(ev) {
|
function chooseFileFrom(ev) {
|
||||||
|
Loading…
Reference in New Issue
Block a user