Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/components/DestinationPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function DestinationPicker({selectedDestination, policyID, onSubmit, ref}: Desti
return (
<SelectionList
ref={ref}
key={selectedDestination}
sections={sections}
shouldShowTextInput={shouldShowTextInput}
textInputOptions={textInputOptions}
Expand All @@ -85,7 +84,6 @@ function DestinationPicker({selectedDestination, policyID, onSubmit, ref}: Desti
initiallyFocusedItemKey={selectedOptionKey}
shouldHideKeyboardOnScroll={false}
shouldUpdateFocusedIndex
disableMaintainingScrollPosition
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function useFlattenedSections<TItem extends ListItem>(sections: Array<Section<TI
} as SectionListItem<TItem>;
data.push(itemData);

if (item.keyForList === initiallyFocusedItemKey) {
if (item.keyForList === initiallyFocusedItemKey && focusedIndex === -1) {
focusedIndex = currentIndex;
}

Expand Down
Loading