Scroll to the tab selected

I have tab that scrolls horizontally in my application as in below image.

My page navigates based on selected tab index. But i couldn’t view the tab button of the selected index on page load. Please tell me how to make the page scroll automatically to the selected index on page load as in the second image.

1 Like

I have the same problem. Did you find any solution?

You need to get element id and use document.getElementById(‘id’).scrollIntoView() for scrolling.