Skip to content

Commit e0c6459

Browse files
committed
fix: remove smooth scroll behavior from list component
1 parent 80b278d commit e0c6459

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ui/src/components/list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
8282
return
8383
}
8484
const element = scrollRef()?.querySelector(`[data-key="${active()}"]`)
85-
element?.scrollIntoView({ block: "center", behavior: "smooth" })
85+
element?.scrollIntoView({ block: "center" })
8686
})
8787

8888
createEffect(() => {

0 commit comments

Comments
 (0)