mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
feat(console): autofocus in create modal (#785)
This commit is contained in:
parent
18ed453628
commit
b8143ff1a7
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ const CreateForm = ({ onClose }: Props) => {
|
|||
>
|
||||
<form>
|
||||
<FormField isRequired title="admin_console.api_resources.api_name">
|
||||
<TextInput {...register('name', { required: true })} />
|
||||
<TextInput autoFocus {...register('name', { required: true })} />
|
||||
</FormField>
|
||||
<FormField isRequired title="admin_console.api_resources.api_identifier">
|
||||
<TextInput {...register('indicator', { required: true })} />
|
||||
|
|
|
@ -53,7 +53,7 @@ const CreateForm = ({ onClose }: Props) => {
|
|||
>
|
||||
<form>
|
||||
<FormField isRequired title="admin_console.users.create_form_username">
|
||||
<TextInput {...register('username', { required: true })} />
|
||||
<TextInput autoFocus {...register('username', { required: true })} />
|
||||
</FormField>
|
||||
<FormField isRequired title="admin_console.users.create_form_name">
|
||||
<TextInput {...register('name', { required: true })} />
|
||||
|
|
Loading…
Reference in a new issue