Skip to content
TypeScript

fix(mobile): search stays open after going back from a thread (#24748)

Theo Browne5398be0d44ef
diff --git a/apps/mobile/src/features/workspace/WorkspaceToolbar.ios.tsx b/apps/mobile/src/features/workspace/WorkspaceToolbar.ios.tsx
index 821c4c70c34..0ac48ac5e23 100644
--- a/apps/mobile/src/features/workspace/WorkspaceToolbar.ios.tsx
+++ b/apps/mobile/src/features/workspace/WorkspaceToolbar.ios.tsx
@@ -101,20 +101,14 @@ export function WorkspaceToolbar(props: {
tab.searchMode !== "resting"
) {
searchRef.current?.setText(tab.query);
- if (duoSearch) {
+ // Integrated search collapses to its button when its screen reappears,
+ // which would hide the query that still filters the list.
+ if (NATIVE_LIQUID_GLASS_SUPPORTED) {
searchRef.current?.setActive(true);
if (tab.searchMode === "active") searchRef.current?.focus();
}
}
- }, [
- searchHostVisible,
- duoSearch,
- isTabActive,
- selectedTab,
- tab.searchMode,
- tab.query,
- searchVisible,
- ]);
+ }, [searchHostVisible, isTabActive, selectedTab, tab.searchMode, tab.query, searchVisible]);
useFocusEffect(
useCallback(() => {
const frame = requestAnimationFrame(restoreSearch);