An open source design system that's fully customizable and agent ready
TypeScript
chore(sandbox): the TreeList perf scene's animated-layout container is a VStack, not a raw div (#9320)
Cindy Zhang6dded46a364a
diff --git a/apps/sandbox/src/app/(raw)/pages/perf-scenes/scenes.tsx b/apps/sandbox/src/app/(raw)/pages/perf-scenes/scenes.tsxindex 37e4713a32..4d6cb3b2e1 100644--- a/apps/sandbox/src/app/(raw)/pages/perf-scenes/scenes.tsx+++ b/apps/sandbox/src/app/(raw)/pages/perf-scenes/scenes.tsx@@ -190,7 +190,7 @@ function treeItems(isExpanded: boolean): TreeListItemData[] {function TreeListScene() {useSceneReady();- const containerRef = useRef<HTMLDivElement>(null);+ const containerRef = useRef<HTMLElement>(null);const animatedLayout = useAnimatedLayout({containerRef});const [isExpanded, setIsExpanded] = useState(false);const items = useMemo(() => treeItems(isExpanded), [isExpanded]);@@ -203,14 +203,14 @@ function TreeListScene() {onClick={() => setIsExpanded(expanded => !expanded)}/></HStack>- <div ref={containerRef}>+ <VStack ref={containerRef}><TreeListitems={items}animatedLayout={animatedLayout}header={<Text weight="semibold">Repository</Text>}xstyle={styles.treeFrame}/>- </div>+ </VStack></VStack>);}