Skip to content

Commit 7894c99

Browse files
fix(mobile): the folded Duo closes search from the field's own cancel button
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent ea0773d commit 7894c99

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,6 @@ export function WorkspaceToolbar(props: {
121121
separateBackground
122122
/>
123123
) : null;
124-
// The folded Duo opens search from its tab bar's search tab; this button only closes it.
125-
const searchButton =
126-
foldedSearch && searchVisible ? (
127-
<Toolbar.Button
128-
identifier="workspace-search"
129-
accessibilityLabel="Close search"
130-
icon="xmark"
131-
onPress={() => searchRef.current?.cancelSearch()}
132-
separateBackground
133-
/>
134-
) : null;
135124
return (
136125
<>
137126
<NativeStackScreenOptions
@@ -158,7 +147,6 @@ export function WorkspaceToolbar(props: {
158147
sidebarTabs !== "picker",
159148
placeholder:
160149
selectedTab === "pullRequests" ? "Search pull requests" : "Search threads",
161-
cancelButtonHidden: foldedSearch,
162150
onFocus: searchFocused,
163151
onBlur: () => workspace.dispatch({ type: "expand", tab: selectedTab }),
164152
onSearchButtonPress: () => searchRef.current?.blur(),
@@ -175,8 +163,6 @@ export function WorkspaceToolbar(props: {
175163
/>
176164
{/* UIKit lays trailing items out from the edge inward. */}
177165
<Toolbar placement="right">
178-
{searchButton}
179-
{nativeToolbarCompose && searchButton ? <Toolbar.Spacer width={8} /> : null}
180166
{composeButton}
181167
{selectedTab !== "threads" ||
182168
isDuoDevice(deviceType) ||

0 commit comments

Comments
 (0)