Skip to content

Commit 5398be0

Browse files
t3dotggclaude
andauthored
fix(mobile): search stays open after going back from a thread (#24748)
Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent e641761 commit 5398be0

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

‎apps/mobile/src/features/workspace/WorkspaceToolbar.ios.tsx‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,14 @@ export function WorkspaceToolbar(props: {
101101
tab.searchMode !== "resting"
102102
) {
103103
searchRef.current?.setText(tab.query);
104-
if (duoSearch) {
104+
// Integrated search collapses to its button when its screen reappears,
105+
// which would hide the query that still filters the list.
106+
if (NATIVE_LIQUID_GLASS_SUPPORTED) {
105107
searchRef.current?.setActive(true);
106108
if (tab.searchMode === "active") searchRef.current?.focus();
107109
}
108110
}
109-
}, [
110-
searchHostVisible,
111-
duoSearch,
112-
isTabActive,
113-
selectedTab,
114-
tab.searchMode,
115-
tab.query,
116-
searchVisible,
117-
]);
111+
}, [searchHostVisible, isTabActive, selectedTab, tab.searchMode, tab.query, searchVisible]);
118112
useFocusEffect(
119113
useCallback(() => {
120114
const frame = requestAnimationFrame(restoreSearch);

0 commit comments

Comments
 (0)