Skip to content

Commit

Permalink
add autoFocus to input field when adding function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailn Nifeli Snieske committed Oct 28, 2024
1 parent f6657e8 commit 7f651f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/function-column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ export function FunctionColumn({ functionId }: FunctionFolderProps) {
borderColor="gray.400"
p="5px"
>
<Input type="text" name="name" placeholder="Navn" required />
<Input
type="text"
name="name"
placeholder="Navn"
required
autoFocus
/>
<IconButton
type="submit"
icon="check"
Expand Down

0 comments on commit 7f651f9

Please sign in to comment.