Revert "fix(desktop): jankiness"

This reverts commit d77cc81359.
This commit is contained in:
Adam
2025-12-29 09:56:21 -06:00
parent 6dc578e772
commit 3fb8ad389a
8 changed files with 60 additions and 69 deletions
+1 -9
View File
@@ -51,17 +51,9 @@ export function useFilteredList<T>(props: FilteredListProps<T>) {
)
})
function initialActive() {
if (props.current) return props.key(props.current)
const items = flat()
if (items.length === 0) return ""
return props.key(items[0])
}
const list = createList({
items: () => flat().map(props.key),
initialActive: initialActive(),
initialActive: props.current ? props.key(props.current) : props.key(flat()[0]),
loop: true,
})