Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update input-select.tsx

Steven Teyc51f3d0549b5
diff --git a/packages/ui/src/input-select.tsx b/packages/ui/src/input-select.tsx
index f25f2f5ccc..a04e4d052a 100644
--- a/packages/ui/src/input-select.tsx
+++ b/packages/ui/src/input-select.tsx
@@ -74,8 +74,8 @@ export function InputSelect({
<>
<Command.Input
placeholder={inputAttrs?.placeholder || "Search..."}
- // hack to focus on the input when the dropdown opens
- autoFocus={openCommandList}
+ // hack to focus on the input when the dropdown opens (only on desktop)
+ autoFocus={openCommandList && !isMobile}
// when focus on the input. only show the dropdown if there are tags and the tagValue is not empty
onFocus={() => setOpenCommandList(true)}
value={inputValue}