-1👍
I solve my problem like this
I gave my unordered list an id="taskListul"
and in methods I added a function:
scrollToEndOfTask() {
const taskScroll = this.$el.querySelector("#taskListul")
const scrollHeight = taskScroll.scrollHeight
taskScroll.scrollTop = scrollHeight
},
I called this function in update method of the vue instance
updated() {
this.scrollToEndOfTask()
},
- [Vuejs]-Access method or property from parent within a non named slot in vuejs component
- [Vuejs]-Vue-cli with webpack crashes when loading css file
Source:stackexchange.com