Skip to content

Commit f9ea4ca

Browse files
authored
fix: selected item scrolls into view in rac select story (#8230)
* fix: selected item scrolls into view in rac select story * fix lint
1 parent 0ef9421 commit f9ea4ca

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

packages/react-aria-components/stories/Select.stories.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,16 @@ export const AsyncVirtualizedCollectionRenderSelect = (args) => {
145145
{list.isLoading && <LoadingSpinner style={{right: '20px', left: 'unset', top: '0px', height: '100%', width: 20}} />}
146146
<span aria-hidden="true" style={{paddingLeft: 25}}></span>
147147
</Button>
148-
<Popover>
149-
<OverlayArrow>
150-
<svg width={12} height={12}><path d="M0 0,L6 6,L12 0" /></svg>
151-
</OverlayArrow>
152-
<Virtualizer
153-
layout={ListLayout}
154-
layoutOptions={{
155-
rowHeight: 25,
156-
loaderHeight: 30
157-
}}>
148+
<Virtualizer
149+
layout={ListLayout}
150+
layoutOptions={{
151+
rowHeight: 25,
152+
loaderHeight: 30
153+
}}>
154+
<Popover>
155+
<OverlayArrow>
156+
<svg width={12} height={12}><path d="M0 0,L6 6,L12 0" /></svg>
157+
</OverlayArrow>
158158
<ListBox className={styles.menu}>
159159
<Collection items={list.items}>
160160
{item => (
@@ -163,8 +163,8 @@ export const AsyncVirtualizedCollectionRenderSelect = (args) => {
163163
</Collection>
164164
<MyListBoxLoaderIndicator isLoading={list.loadingState === 'loadingMore'} onLoadMore={list.loadMore} />
165165
</ListBox>
166-
</Virtualizer>
167-
</Popover>
166+
</Popover>
167+
</Virtualizer>
168168
</Select>
169169
);
170170
};

0 commit comments

Comments
 (0)