Repository navigation
Replies: 1 comment
|
You're not the only one. The cause is that With Pass the ref to the trigger, which is the focusable button: <FormField
control={form.control}
name="email"
render={({ field }) => (
<FormItem>
<FormLabel>Email</FormLabel>
<Select onValueChange={field.onChange} defaultValue={field.value}>
<FormControl>
<SelectTrigger ref={field.ref}>
<SelectValue placeholder="Select a verified email" />
</SelectTrigger>
</FormControl>
<SelectContent>{/* ... */}</SelectContent>
</Select>
<FormMessage />
</FormItem>
)}
/>The same applies to any non-native control (Combobox, DatePicker, RadioGroup…): give |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Am I the only one expiring that, the select is not being focused when there is an error?
All reactions