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:
parent
59f67c7ea7
commit
54b3ff2620
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue