Fixes
This commit is contained in:
@@ -499,7 +499,9 @@ export function SearchScreen(
|
|||||||
|
|
||||||
useFocusEffect(
|
useFocusEffect(
|
||||||
useNonReactiveCallback(() => {
|
useNonReactiveCallback(() => {
|
||||||
setSearchText(queryParam)
|
if (isWeb) {
|
||||||
|
setSearchText(queryParam)
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -610,6 +612,8 @@ export function SearchScreen(
|
|||||||
|
|
||||||
const handleHistoryItemClick = (item: string) => {
|
const handleHistoryItemClick = (item: string) => {
|
||||||
setInputIsFocused(false)
|
setInputIsFocused(false)
|
||||||
|
setSearchText(item)
|
||||||
|
textInput.current?.blur()
|
||||||
if (isWeb) {
|
if (isWeb) {
|
||||||
navigation.push('Search', {q: item})
|
navigation.push('Search', {q: item})
|
||||||
} else {
|
} else {
|
||||||
@@ -750,8 +754,9 @@ export function SearchScreen(
|
|||||||
profile={item}
|
profile={item}
|
||||||
moderation={moderateProfile(item, moderationOpts)}
|
moderation={moderateProfile(item, moderationOpts)}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
setInputIsFocused(false)
|
if (isWeb) {
|
||||||
textInput.current?.blur()
|
setInputIsFocused(false)
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user