Explorar el Código

fix: remove smooth scroll behavior from list component

David Hill hace 1 mes
padre
commit
e0c6459faa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ui/src/components/list.tsx

+ 1 - 1
packages/ui/src/components/list.tsx

@@ -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(() => {