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.

fix: focus hack

flooorianflobc0715553e99
diff --git a/packages/ui/src/input-select.tsx b/packages/ui/src/input-select.tsx
index 799bb0134c..4aeedcc930 100644
--- a/packages/ui/src/input-select.tsx
+++ b/packages/ui/src/input-select.tsx
@@ -75,8 +75,8 @@ export function InputSelect({
<>
<Command.Input
placeholder={inputAttrs?.placeholder || "Search..."}
- // hack to focus on the input when the dropdown opens (only on desktop)
- autoFocus={openCommandList && !isMobile}
+ // hack to focus on the input when the dropdown opens
+ autoFocus={openCommandList}
onFocus={() => setOpenCommandList(true)}
value={inputValue}
onValueChange={setInputValue}