[Vuejs]-Vue JS when I click on button I want that the div scroll to bottom of the div

1👍

To scroll to the bottom of the #chatLog div just do:

const chatLogDiv = document.getElementById('chatLog')
chatLogDiv.scrollTop = chatLogDiv.scrollHeight

Leave a comment