Skip to content

[Help] V-Scroll on other Component #13852

Answered by derHodrig
derHodrig asked this question in Q&A
Discussion options

You must be logged in to vote

Got it to work, but with just javascript.

First, we need access to our element via ID. After that it is simple, we start scrolling :D

scrollToElement(message) {
      const element = document.getElementById(
        `${message.status.toLowerCase().split(' ').join('_')}_${message.id}`
      )
      element.scrollIntoView({ block: 'start', behavior: 'smooth' }) // holy grale
    },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by derHodrig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant