diff --git a/html-router/templates/chat/history.html b/html-router/templates/chat/history.html index 2b48710..d81e885 100644 --- a/html-router/templates/chat/history.html +++ b/html-router/templates/chat/history.html @@ -57,10 +57,8 @@ chatContainer.scrollTop = chatContainer.scrollHeight; } } - document.body.addEventListener('htmx:afterSwap', function (evt) { - renderMarkdown(); - setTimeout(scrollChatToBottom, 0); + scrollChatToBottom(); });