Skip to content

Commit 40a85bc

Browse files
authored
Merge branch 'main' into jest-commands
2 parents 163db0b + 06bdde9 commit 40a85bc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/DropdownMenu/DropdownButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type DropdownButtonProps = ButtonProps
77

88
export const DropdownButton = React.forwardRef<HTMLElement, React.PropsWithChildren<DropdownButtonProps>>(
99
({children, ...props}: React.PropsWithChildren<DropdownButtonProps>, ref): JSX.Element => (
10-
<Button ref={ref} {...props}>
10+
<Button ref={ref} type="button" {...props}>
1111
{children}
1212
<StyledOcticon icon={TriangleDownIcon} ml={1} />
1313
</Button>

src/__tests__/__snapshots__/DropdownMenu.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ exports[`DropdownMenu renders consistently 1`] = `
7979
onClick={[Function]}
8080
onKeyDown={[Function]}
8181
tabIndex={0}
82+
type="button"
8283
>
8384
<svg
8485
aria-hidden="true"

src/__tests__/__snapshots__/SelectPanel.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ exports[`SelectPanel renders consistently 1`] = `
9191
onClick={[Function]}
9292
onKeyDown={[Function]}
9393
tabIndex={0}
94+
type="button"
9495
>
9596
Select Items
9697
<svg

0 commit comments

Comments
 (0)