Skip to content

Commit

Permalink
Refactor CreateList component to change the button type to "submit" f…
Browse files Browse the repository at this point in the history
…or creating a new shopping list.
  • Loading branch information
RossaMania committed Oct 12, 2024
1 parent 6dc0d0e commit f02efe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/CreateList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export function CreateList({ user, setListPath }: Props) {
aria-required="true" // Indicates that this field is required
/>
<br />
<Button aria-label="Create new shopping list">Create List</Button>
<Button type="submit" aria-label="Create new shopping list">
Create List
</Button>
</InputGroup>
</Form>
</>
Expand Down

0 comments on commit f02efe9

Please sign in to comment.