Skip to content

Commit

Permalink
feat: déclenche l'autofocus pour le premier champ des modales de créa…
Browse files Browse the repository at this point in the history
…tion de tag/workspace
  • Loading branch information
thom4parisot committed Jan 21, 2025
1 parent a33aebc commit 2964f10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions front/src/components/TagCreate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default function TagCreate() {
<section className={styles.create}>
<form onSubmit={handleCreateTag}>
<Field
autoFocus={true}
label={t('tag.createForm.nameField')}
type="text"
{...nameBindings}
Expand Down
1 change: 1 addition & 0 deletions front/src/components/workspace/CreateWorkspace.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function CreateWorkspace() {
<section>
<form onSubmit={handleSubmit}>
<Field
autoFocus={true}
ref={nameInputRef}
{...nameBindings}
label={t('workspace.createForm.nameField')}
Expand Down

0 comments on commit 2964f10

Please sign in to comment.