admin(ui): autofocus field on New Role modal open

This commit is contained in:
Matthew Penner 2021-02-16 13:04:10 -07:00
parent 9b08b6b595
commit 10fc7e88e0
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@ export default () => {
}} }}
> >
<FlashMessageRender byKey={'role:create'} css={tw`mb-6`}/> <FlashMessageRender byKey={'role:create'} css={tw`mb-6`}/>
<h2 css={tw`text-neutral-100 text-2xl mb-6`}>New Role</h2> <h2 css={tw`mb-6 text-2xl text-neutral-100`}>New Role</h2>
<Form css={tw`m-0`}> <Form css={tw`m-0`}>
<Field <Field
type={'string'} type={'string'}
@ -71,6 +71,7 @@ export default () => {
name={'name'} name={'name'}
label={'Name'} label={'Name'}
description={'A short name used to identify this role.'} description={'A short name used to identify this role.'}
autoFocus
/> />
<div css={tw`mt-6`}> <div css={tw`mt-6`}>