Sending a chat message leaves the message inside the box long enough for me to continue typing additional characters (that aren't sent ofc). What I usually do is detect keydown rather than keypress or keyup, and IMMEDIATELY remove the message. Then if the fetch or whatever fails, I restore the textbox so you don't lose what you sent. If this is acceptable, I can modify that.
Sending a chat message leaves the message inside the box long enough for me to continue typing additional characters (that aren't sent ofc). What I usually do is detect keydown rather than keypress or keyup, and IMMEDIATELY remove the message. Then if the fetch or whatever fails, I restore the textbox so you don't lose what you sent. If this is acceptable, I can modify that.