From 24dfa39f91b19a772a227543fe31d29e66ca703a Mon Sep 17 00:00:00 2001 From: retoor Date: Fri, 30 May 2025 19:32:18 +0200 Subject: [PATCH] Update chat input. --- src/snek/static/chat-input.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/snek/static/chat-input.js b/src/snek/static/chat-input.js index 205aa3d..110ea27 100644 --- a/src/snek/static/chat-input.js +++ b/src/snek/static/chat-input.js @@ -10,12 +10,17 @@ class ChatInputComponent extends HTMLElement { app.rpc.starsRender(this.channelUid,this.value.replace("/starsRender ","")) } } - + users = [] + textarea = null + _value = "" + lastUpdateEvent = null + previousValue = "" + lastChange = null + changed = false constructor() { super(); this.lastUpdateEvent = new Date(); this.textarea = document.createElement("textarea"); - this._value = ""; this.value = this.getAttribute("value") || ""; this.previousValue = this.value; this.lastChange = new Date();