Skip to content

Commit

Permalink
prevent form submit (#4551)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp authored May 7, 2024
1 parent ed31476 commit 09ac01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/Autocomplete/Autocomplete.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export const Default = (args: FormControlArgs<AutocompleteArgs>) => {
}

return (
<Box as="form" sx={{p: 3}}>
<Box as="form" sx={{p: 3}} onSubmit={event => event.preventDefault()}>
<FormControl {...parentArgs}>
<FormControl.Label id="autocompleteLabel" {...labelArgs} />
<Autocomplete>
Expand Down

0 comments on commit 09ac01e

Please sign in to comment.