/** * A hook used to scroll to the bottom of an element whenever it * receives LV update. */ const ScrollOnUpdate = { mounted() { this.scroll(); }, updated() { this.scroll(); }, scroll() { this.el.scrollTop = this.el.scrollHeight; }, }; export default ScrollOnUpdate;