diff --git a/app/src/ui/lib/list/list.tsx b/app/src/ui/lib/list/list.tsx index 283c139cc2..f5a9faee10 100644 --- a/app/src/ui/lib/list/list.tsx +++ b/app/src/ui/lib/list/list.tsx @@ -651,6 +651,11 @@ export class List extends React.Component { // focused list item if it scrolls back into view. if (!focusWithin) { this.focusRow = -1 + } else if (this.props.selectedRows.length === 0) { + const firstSelectableRowIndexPath = this.getFirstSelectableRowIndexPath() + if (firstSelectableRowIndexPath !== null) { + this.moveSelectionTo(firstSelectableRowIndexPath, { kind: 'focus' }) + } } }