fix: automatically scrolling to bottom of chat not working properly
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
480c91d419
commit
b6b8d10d29
1 changed files with 2 additions and 0 deletions
|
@ -251,6 +251,8 @@ onMounted(async () => {
|
|||
if (import.meta.server) return;
|
||||
console.log("[MSG] messages keys:", Object.values(messages.value));
|
||||
if (messagesElement.value) {
|
||||
await nextTick();
|
||||
await nextTick();
|
||||
scrollToBottom(messagesElement.value);
|
||||
let fetched = false;
|
||||
const amount = messages.value.length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue