We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc2a47 commit e35f2b8Copy full SHA for e35f2b8
src/assets/js/linkable-tabs.js
@@ -9,7 +9,9 @@ jQuery(function () {
9
$('.wt-tabs.nav-tabs a').on('shown.bs.tab', function (e) {
10
var scrollPos = $('body').scrollTop();
11
window.location.hash = e.target.hash;
12
- $('html,body').scrollTop(scrollPos);
+ if (scrollPos !== 0) {
13
+ $('html,body').scrollTop(scrollPos);
14
+ }
15
});
16
17
// Append Tab hash to any forms that reside within a tab.
0 commit comments