Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

change search cancel behaviour (#7624)

authored by

Samuel Newman and committed by
GitHub
2523740b b27a11cc

+8 -2
+8 -2
src/view/screens/Search/Search.tsx
··· 741 741 scrollToTopWeb() 742 742 textInput.current?.blur() 743 743 setShowAutocomplete(false) 744 - setSearchText(queryParam) 745 - }, [setShowAutocomplete, setSearchText, queryParam]) 744 + if (isWeb) { 745 + // Empty params resets the URL to be /search rather than /search?q= 746 + navigation.replace('Search', {}) 747 + } else { 748 + setSearchText('') 749 + navigation.setParams({q: ''}) 750 + } 751 + }, [setShowAutocomplete, setSearchText, navigation]) 746 752 747 753 const onSubmit = React.useCallback(() => { 748 754 navigateToItem(searchText)