0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -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>
<FormField title="user_details.field_email">
<TextInput
// eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus
{...register('primaryEmail', {
pattern: {
value: emailRegEx,