Skip to content

Commit

Permalink
Merge pull request #3122 from digitalfabrik/2908-Close-keyboard-in-se…
Browse files Browse the repository at this point in the history
…arch

2908: Immediately open link in search
  • Loading branch information
LeandraH authored Feb 26, 2025
2 parents 9f5e2a9 + 8fee07d commit fab6623
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions native/src/components/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type ListProps<T> = {
refresh?: () => void
onEndReached?: () => void
style?: ViewStyle
keyboardShouldPersistTaps?: 'always' | 'never' | 'handled'
}

const List = <T,>({
Expand All @@ -33,6 +34,7 @@ const List = <T,>({
onEndReached,
scrollEnabled,
style,
keyboardShouldPersistTaps = 'never',
}: ListProps<T>): ReactElement => (
<FlatList
data={items}
Expand All @@ -51,6 +53,7 @@ const List = <T,>({
role='list'
accessibilityLabel={accessibilityLabel}
style={style}
keyboardShouldPersistTaps={keyboardShouldPersistTaps}
/>
)

Expand Down
1 change: 1 addition & 0 deletions native/src/routes/SearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const SearchModal = ({
renderItem={renderItem}
accessibilityLabel={t('searchResultsCount', { count: searchResults.length })}
style={{ flex: 1 }}
keyboardShouldPersistTaps='handled'
noItemsMessage={
<FeedbackContainer
routeType={SEARCH_ROUTE}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
issue_key: 2908
show_in_stores: true
platforms:
- android
- ios
en: Improvements to the search behavior
de: Verbesserung beim Suchverhalten

0 comments on commit fab6623

Please sign in to comment.