Reset textarea to default size after submitting message (#99)

This commit is contained in:
Phuoc Anh Kha Le 2023-12-24 00:39:48 -06:00 committed by GitHub
parent 015cbcc758
commit c9f1d69b47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,7 +219,6 @@
if ($("#chat-input").val().trim()) {
$('#chat-input-container').height('auto');
var body = $('#chat-input').val().trim();
// body = body.split('\n').join('\n\n');
var message = {
body: body,
@ -228,6 +227,7 @@
};
$('#chat-input').val('');
$('#chat-input').css('height', '70%');
add_message_from_template(body, message.tmp_id);