From 73a061c48b72ec08ae249060c0a5269f93de625b Mon Sep 17 00:00:00 2001
From: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
Date: Tue, 13 May 2025 14:04:37 -0700
Subject: [PATCH 1/2] fix: selected item scrolls into view in rac select story
---
.../stories/Select.stories.tsx | 30 +++++++++----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/packages/react-aria-components/stories/Select.stories.tsx b/packages/react-aria-components/stories/Select.stories.tsx
index 9b42c5ba954..4d578219498 100644
--- a/packages/react-aria-components/stories/Select.stories.tsx
+++ b/packages/react-aria-components/stories/Select.stories.tsx
@@ -145,26 +145,26 @@ export const AsyncVirtualizedCollectionRenderSelect = (args) => {
{list.isLoading && }
▼
-
-
-
-
-
-
-
- {item => (
- {item.name}
- )}
-
-
-
-
-
+
+
+
+
+
+
+ {item => (
+ {item.name}
+ )}
+
+
+
+
+
);
};
From dc79c493558c37a520b02f5a2d7c6dbe8caa8fed Mon Sep 17 00:00:00 2001
From: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
Date: Tue, 13 May 2025 14:09:30 -0700
Subject: [PATCH 2/2] fix lint
---
.../stories/Select.stories.tsx | 26 +++++++++----------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/packages/react-aria-components/stories/Select.stories.tsx b/packages/react-aria-components/stories/Select.stories.tsx
index 4d578219498..51f9473833a 100644
--- a/packages/react-aria-components/stories/Select.stories.tsx
+++ b/packages/react-aria-components/stories/Select.stories.tsx
@@ -146,23 +146,23 @@ export const AsyncVirtualizedCollectionRenderSelect = (args) => {
▼
+ layout={ListLayout}
+ layoutOptions={{
+ rowHeight: 25,
+ loaderHeight: 30
+ }}>
-
-
- {item => (
- {item.name}
- )}
-
-
-
+
+
+ {item => (
+ {item.name}
+ )}
+
+
+