Skip to content

Commit

Permalink
stop auto scrolling (#4486)
Browse files Browse the repository at this point in the history
  • Loading branch information
wraeth-eth authored Oct 16, 2024
1 parent 6651f8b commit 9f0fd73
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/Project/ProjectTabs/ProjectTab.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tab } from '@headlessui/react'
import { ReactNode, useRef } from 'react'
import React, { ReactNode, useRef } from 'react'
import { twMerge } from 'tailwind-merge'

interface ProjectTabProps {
Expand All @@ -26,14 +26,6 @@ export const ProjectTab: React.FC<ProjectTabProps> = ({
onClick={onClick}
>
{({ selected }) => {
if (selected && tabRef.current) {
tabRef.current.scrollIntoView({
behavior: 'smooth',
block: 'nearest',
inline: 'start',
})
}

return (
<div
className={twMerge(
Expand Down

0 comments on commit 9f0fd73

Please sign in to comment.