Skip to content

Commit f9f5365

Browse files
committed
Remove scrollIntoView for activeTab (#5000)
Its creating issues with scrolling on iOS
1 parent 79f029c commit f9f5365

File tree

1 file changed

+0
-6
lines changed
  • apps/dashboard/src/@/components/ui

1 file changed

+0
-6
lines changed

apps/dashboard/src/@/components/ui/tabs.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,6 @@ function useUnderline<El extends HTMLElement>() {
159159
setTimeout(() => {
160160
lineEl.style.transition = "transform 0.3s, width 0.3s";
161161
}, 0);
162-
163-
activeTabEl.scrollIntoView({
164-
behavior: "smooth",
165-
block: "nearest",
166-
inline: "center",
167-
});
168162
} else if (lineRef.current) {
169163
lineRef.current.style.width = "0px";
170164
}

0 commit comments

Comments
 (0)