fix: remove smooth scroll behavior from list component

This commit is contained in:
David Hill
2026-01-17 00:37:56 +00:00
parent 80b278ddab
commit e0c6459faa

View File

@@ -82,7 +82,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
return return
} }
const element = scrollRef()?.querySelector(`[data-key="${active()}"]`) const element = scrollRef()?.querySelector(`[data-key="${active()}"]`)
element?.scrollIntoView({ block: "center", behavior: "smooth" }) element?.scrollIntoView({ block: "center" })
}) })
createEffect(() => { createEffect(() => {