Skip to content

Commit 156db8c

Browse files
committed
fix: split - only amount input is focusable via tab key
1 parent 1f840cb commit 156db8c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/components/SelectionList/BaseListItem.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function BaseListItem<TItem extends ListItem>({
8282
id={keyForList ?? ''}
8383
style={pressableStyle}
8484
onFocus={onFocus}
85+
tabIndex={item.tabIndex}
8586
>
8687
<View style={wrapperStyle}>
8788
{typeof children === 'function' ? children(hovered) : children}

src/components/SelectionList/types.ts

+3
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ type ListItem = {
125125

126126
/** Whether the brick road indicator should be shown */
127127
brickRoadIndicator?: BrickRoad | '' | null;
128+
129+
/** Whether item pressable wrapper should be focusable */
130+
tabIndex?: 0 | -1;
128131
};
129132

130133
type TransactionListItemType = ListItem &

0 commit comments

Comments
 (0)