focus on box on reply
This commit is contained in:
parent
7d850559da
commit
9434450d26
1 changed files with 2 additions and 0 deletions
|
@ -731,6 +731,8 @@ class Channel extends SnowFlake{
|
||||||
this.replyingto.div.classList.remove("replying");
|
this.replyingto.div.classList.remove("replying");
|
||||||
}
|
}
|
||||||
this.replyingto = message;
|
this.replyingto = message;
|
||||||
|
const typebox = document.getElementById("typebox") as HTMLElement;
|
||||||
|
typebox.focus();
|
||||||
if(!this.replyingto?.div)return;
|
if(!this.replyingto?.div)return;
|
||||||
console.log(message);
|
console.log(message);
|
||||||
this.replyingto.div.classList.add("replying");
|
this.replyingto.div.classList.add("replying");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue