Skip to content
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 skoenfaelt
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