Skip to content

Commit 12fc9a9

Browse files
fix(web): keep the candidate picker's search box live after a pick
Cancel the item-press close instead of ignoring it, so the combobox skips its own close work (freezing the query, returning focus to the trigger) and a second reviewer or label can be typed straight away. Co-Authored-By: Claude Code <[email protected]>
1 parent eb4f6e8 commit 12fc9a9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestCandidatePicker.tsx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,13 @@ export function PullRequestCandidatePicker<T>({
105105
open={open}
106106
onOpenChange={(nextOpen, details) => {
107107
// Stays open on a pick: a change is confirmed by the row's own check turning over, and a
108-
// second label or reviewer is usually wanted right after the first.
109-
if (!nextOpen && details.reason === "item-press") return;
108+
// second label or reviewer is usually wanted right after the first. Cancelled rather than
109+
// ignored, so the combobox also skips its own close work: freezing the query and returning
110+
// focus to the trigger, either of which would take the next keystroke away from the box.
111+
if (!nextOpen && details.reason === "item-press") {
112+
details.cancel();
113+
return;
114+
}
110115
onOpenChange(nextOpen);
111116
}}
112117
>

0 commit comments

Comments
 (0)