mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-09 13:57:56 +00:00
Added chatscroll check (#9814)
This commit is contained in:
parent
2ba327ef14
commit
1ce09aeb34
1 changed files with 2 additions and 0 deletions
|
|
@ -284,6 +284,7 @@ export default {
|
|||
this.$set(this, 'activeChat', activeChat);
|
||||
|
||||
Vue.nextTick(() => {
|
||||
if (!this.$refs.chatscroll) return;
|
||||
let chatscroll = this.$refs.chatscroll.$el;
|
||||
chatscroll.scrollTop = chatscroll.scrollHeight;
|
||||
});
|
||||
|
|
@ -315,6 +316,7 @@ export default {
|
|||
this.newMessage = '';
|
||||
|
||||
Vue.nextTick(() => {
|
||||
if (!this.$refs.chatscroll) return;
|
||||
let chatscroll = this.$refs.chatscroll.$el;
|
||||
chatscroll.scrollTop = chatscroll.scrollHeight;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue