mirror of
https://github.com/amir20/dozzle.git
synced 2026-01-04 03:54:58 +01:00
Fixes scroll
This commit is contained in:
@@ -39,8 +39,11 @@ export default {
|
||||
ws.onerror = e => console.error("Connection error: " + e.data);
|
||||
ws.onmessage = e => {
|
||||
const message = parseMessage(e.data);
|
||||
this.messages.push(message);
|
||||
|
||||
this.$nextTick(() => this.messages.push(message));
|
||||
this.$nextTick(() =>
|
||||
document.querySelector("li.event:last-child").scrollIntoView()
|
||||
);
|
||||
};
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user