focus on box on reply

This commit is contained in:
MathMan05 2024-11-03 14:56:46 -06:00
parent 7d850559da
commit 9434450d26

View file

@ -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");