We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10be21e commit 0abac54Copy full SHA for 0abac54
frontend/src/components/app/matches/Chat.vue
@@ -72,7 +72,9 @@ export default {
72
this.message = '';
73
this.$nextTick(() => {
74
const messageBox = document.getElementById('messageBox');
75
- messageBox.scrollTop = messageBox.scrollHeight;
+ if (messageBox) {
76
+ messageBox.scrollTop = messageBox.scrollHeight;
77
+ }
78
});
79
},
80
@@ -84,7 +86,9 @@ export default {
84
86
this.loggedInUserId = this.$store.getters.getLoggedInUser.id;
85
87
88
89
90
91
92
93
94
};
0 commit comments