mirror of
https://github.com/logto-io/logto.git
synced 2025-02-03 21:48:55 -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>
|
<form>
|
||||||
<FormField isRequired title="admin_console.api_resources.api_name">
|
<FormField isRequired title="admin_console.api_resources.api_name">
|
||||||
<TextInput {...register('name', { required: true })} />
|
<TextInput autoFocus {...register('name', { required: true })} />
|
||||||
</FormField>
|
</FormField>
|
||||||
<FormField isRequired title="admin_console.api_resources.api_identifier">
|
<FormField isRequired title="admin_console.api_resources.api_identifier">
|
||||||
<TextInput {...register('indicator', { required: true })} />
|
<TextInput {...register('indicator', { required: true })} />
|
||||||
|
|
|
@ -53,7 +53,7 @@ const CreateForm = ({ onClose }: Props) => {
|
||||||
>
|
>
|
||||||
<form>
|
<form>
|
||||||
<FormField isRequired title="admin_console.users.create_form_username">
|
<FormField isRequired title="admin_console.users.create_form_username">
|
||||||
<TextInput {...register('username', { required: true })} />
|
<TextInput autoFocus {...register('username', { required: true })} />
|
||||||
</FormField>
|
</FormField>
|
||||||
<FormField isRequired title="admin_console.users.create_form_name">
|
<FormField isRequired title="admin_console.users.create_form_name">
|
||||||
<TextInput {...register('name', { required: true })} />
|
<TextInput {...register('name', { required: true })} />
|
||||||
|
|
Loading…
Add table
Reference in a new issue