How to perform scrollIntoView for a specific div, which is a child of a horizontal scrollable asset in React Application?

Viewed 11

I'm Adding this Image as a reference. Trying my hard to make sense what my current scenario is. ** When i'm using scrollIntoView for horizontal scrollable asset. The left align for all the scrollable asset throughout the application is going for a Toss. **

enter image description here

** This is The piece of code I'm Using. **

let element = rowElem.querySelector(".className");
element.scrollIntoView({block: "nearest", behavior: "auto", inline: "nearest"});

Can someone please tell me what to do in this matter. Thanks

0 Answers
Related