From 6ff0ce8bc52211d9df0242368872e3f04804a0f2 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 24 Oct 2025 15:45:26 -0400 Subject: ignore: improve session timeline debugging and message display functionality --- packages/ui/src/components/list.tsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/ui/src') diff --git a/packages/ui/src/components/list.tsx b/packages/ui/src/components/list.tsx index cb212d1a8..aaba61fdf 100644 --- a/packages/ui/src/components/list.tsx +++ b/packages/ui/src/components/list.tsx @@ -23,6 +23,10 @@ export function List(props: ListProps) { initialActive: props.current ? props.key(props.current) : undefined, loop: true, }) + + createEffect(() => { + if (props.current) list.setActive(props.key(props.current)) + }) // const resetSelection = () => { // if (props.data.length === 0) return // list.setActive(props.key(props.data[0])) -- cgit v1.2.3