Skip to content

Commit e41d14d

Browse files
disable centering on sidebars
1 parent b3eaeda commit e41d14d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/menulist-tab.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ export class MenulistTabElement extends HTMLElement {
125125
if (tab.active) {
126126
this.tabButton.classList.add("active");
127127
// Scroll to center with a small delay to avoid initial render conflicts
128-
setTimeout(() => this.scrollIntoViewIfActive(), 100);
128+
if (document.body.classList.contains('popup')) {
129+
setTimeout(() => this.scrollIntoViewIfActive(), 100);
130+
}
129131
}
130132

131133
}

0 commit comments

Comments
 (0)