@devries-cameron20 / t3code-1 / commits / 3f2dbd7d11
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): tapping away from the model picker on a phone no longer presses what is under it (#20841)

Mantas Kantautas committed Oct 18, 2026 at 22:08 UTC 3f2dbd7d11c1ba9d096fbab10b9d4271da2ac5ab
2 files changed +12
apps/web/src/components/chat/ProviderModelPicker.tsx
+1
@@ -278,6 +278,7 @@ export const ProviderModelPicker = memo(function ProviderModelPicker(props: {
278 align="start"
279 className="before:hidden"
280 padding="none"
281 + touchBackdrop
282 >
283 <ModelPickerContent
284 environmentId={props.environmentId}
apps/web/src/components/ui/popover.tsx
+11
@@ -43,6 +43,7 @@ function PopoverPopup({
43 tooltipStyle = false,
44 keepMounted = false,
45 anchor,
46 + touchBackdrop = false,
47 ...props
48 }: PopoverPrimitive.Popup.Props & {
49 padding?: keyof typeof popoverViewportPaddingClassName;
@@ -56,12 +57,22 @@ function PopoverPopup({
57 keepMounted?: PopoverPrimitive.Portal.Props["keepMounted"];
58 anchor?: PopoverPrimitive.Positioner.Props["anchor"];
59 width?: keyof typeof popoverPopupWidthClassName;
60 + touchBackdrop?: boolean;
61 }) {
62 // Viewport rekeys its children when the active trigger clears on close. Persistent
63 // single-trigger forms need a stable container to retain drafts and submit guards.
64 const Viewport = keepMounted ? "div" : PopoverPrimitive.Viewport;
65 return (
66 <PopoverPrimitive.Portal keepMounted={keepMounted}>
67 + {touchBackdrop ? (
68 + // A non-modal popover closes on an outside tap and lets that tap reach the
69 + // control under the finger. On touch screens the backdrop takes the tap, so
70 + // tapping away only closes the popover, as it does for modal menus and selects.
71 + <PopoverPrimitive.Backdrop
72 + className="fixed inset-0 z-[130] hidden pointer-coarse:block"
73 + data-slot="popover-backdrop"
74 + />
75 + ) : null}
76 <PopoverPrimitive.Positioner
77 align={align}
78 alignOffset={alignOffset}