Skip to content

Commit 36ad8c4

Browse files
committed
feat: forward orientation to gridlist keyboard delegate
1 parent ef61fa4 commit 36ad8c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-aria-components/src/GridList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface GridListInnerProps<T extends object> {
109109
}
110110

111111
function GridListInner<T extends object>({props, collection, gridListRef: ref}: GridListInnerProps<T>) {
112-
let {dragAndDropHooks, keyboardNavigationBehavior = 'arrow', layout = 'stack'} = props;
112+
let {dragAndDropHooks, keyboardNavigationBehavior = 'arrow', layout = 'stack', orientation = 'vertical'} = props;
113113
let {CollectionRoot, isVirtualized, layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate} = useContext(CollectionRendererContext);
114114
let state = useListState({
115115
...props,
@@ -189,6 +189,7 @@ function GridListInner<T extends object>({props, collection, gridListRef: ref}:
189189

190190
let keyboardDelegate = new ListKeyboardDelegate({
191191
collection,
192+
orientation,
192193
disabledKeys: selectionManager.disabledKeys,
193194
disabledBehavior: selectionManager.disabledBehavior,
194195
ref

0 commit comments

Comments
 (0)