Clear textarea after sending
This commit is contained in:
+8
-2
@@ -14,7 +14,7 @@
|
||||
<button {% if not IsLogin or not HaveKey %}disabled{% endif %} type="submit"
|
||||
class="send-button button is-primary is-small" hx-post="/requestMultipleMessages"
|
||||
hx-swap="beforeend settle:200ms" hx-target="#chat-messages" id="chat-input-send-btn"
|
||||
class="chat-input" hx-include="[name='message'], [name^='model-check-']">
|
||||
class="chat-input" hx-include="[name='message'], [name^='model-check-']" onclick="clearTextArea()">
|
||||
<span class="icon">
|
||||
<i class="fa-solid fa-chevron-right"></i>
|
||||
</span>
|
||||
@@ -22,4 +22,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function clearTextArea() {
|
||||
document.querySelector('.textarea').value = '';
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user