The best way to control Claude Code, Codex and more from any computer or phone
fix(web): PR search keeps the caret where you type (#17675)
oliver committed
Oct 10, 2026 at 00:23 UTC
42f71dfe0768ee768283d50140e7d360a635ee28
1 file changed
+8
-2
apps/web/src/components/pullRequest/PullRequestListFilters.tsx
+8
-2
@@ -104,6 +104,7 @@ export function PullRequestSearchInput({
104
busy?: boolean;
105
onChange: (value: string) => void;
106
}) {
107
+ const [draft, setDraft] = useState<string | null>(null);
108
return (
109
<InputGroup className="min-w-0 flex-1 **:[input]:h-9 sm:**:[input]:h-8">
110
<InputGroupAddon>
@@ -111,8 +112,13 @@ export function PullRequestSearchInput({
112
</InputGroupAddon>
113
<InputGroupInput
114
type="search"
114
- value={value}
115
- onChange={(event) => onChange(event.currentTarget.value)}
115
+ value={draft ?? value}
116
+ onFocus={() => setDraft(value)}
117
+ onBlur={() => setDraft(null)}
118
+ onChange={(event) => {
119
+ setDraft(event.currentTarget.value);
120
+ onChange(event.currentTarget.value);
121
+ }}
122
placeholder="Search pull requests, or label:bug"
123
aria-label="Search pull requests"
124
/>