Skip to content

Commit

Permalink
Fix regression on keyboard navigation (#61478)
Browse files Browse the repository at this point in the history
Co-authored-by: oandregal <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: gziolo <[email protected]>
  • Loading branch information
4 people authored May 8, 2024
1 parent 8c16e93 commit 4ae0dca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/dataviews/src/view-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface ListViewProps {
}

interface ListViewItemProps {
id: string;
id?: string;
item: Item;
isSelected: boolean;
onSelect: ( item: Item ) => void;
Expand Down Expand Up @@ -183,7 +183,8 @@ export default function ViewList( props: ListViewProps ) {
);

const getItemDomId = useCallback(
( item?: Item ) => ( item ? `${ baseId }-${ getItemId( item ) }` : '' ),
( item?: Item ) =>
item ? `${ baseId }-${ getItemId( item ) }` : undefined,
[ baseId, getItemId ]
);

Expand Down

0 comments on commit 4ae0dca

Please sign in to comment.