Target the scrollable element
This commit is contained in:
committed by
Stanko K.R.
parent
ab235be9ae
commit
07f3bcd225
@@ -34,7 +34,7 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
scrollToBottom() {
|
||||
this.element.scrollTop = this.element.scrollHeight
|
||||
this.messagesTarget.scrollTop = this.messagesTarget.scrollHeight
|
||||
}
|
||||
|
||||
beforeStreamRender(event) {
|
||||
|
||||
Reference in New Issue
Block a user