diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 5181fd3d1..0c1a6f41f 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -403,6 +403,7 @@ function handle_files() { document.getElementById('image-preview').setAttribute('src', this.result); document.getElementById('image-preview').classList.remove('d-none'); document.getElementById('image-preview').classList.add('mr-2'); + box.scrollTo(0, box.scrollHeight) }; } else {