0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-03 21:48:55 -05:00

refactor(console): auto focus on the email field when creating user (#5276)

This commit is contained in:
Xiao Yijun 2024-01-24 10:41:43 +08:00 committed by GitHub
parent 59f67c7ea7
commit 54b3ff2620
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,6 +146,8 @@ function CreateForm({ onClose, onCreate }: Props) {
<form> <form>
<FormField title="user_details.field_email"> <FormField title="user_details.field_email">
<TextInput <TextInput
// eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus
{...register('primaryEmail', { {...register('primaryEmail', {
pattern: { pattern: {
value: emailRegEx, value: emailRegEx,