I am using Sitecore 9.3 SXA, wherefrom main page on button click I am redirecting to the video page where we have SXA Tab component below the video. Upon redirecting, the page is getting scrolled to the bottom where the tab is.
I have debugged the tab js, component-tabs, found that when if condition in the below code is hitting, the page is getting auto scrolled to the component as the tab-heading is having some scroll height and scroll width property. If I try by changing or removing the "tab-scrollable" class in the js, the tabs are not functioning.
api.initInstance = function(component) {
var $tabModule = component.find(".tabs-inner");
if (component.hasClass("tabs-scrollable")) {
tabsScrollable(component);
}
Is there any way to restrict the auto-scroll?
Thanks in advance