Skip to content

Commit

Permalink
fix: Type 'DropdownButton' as 'button' (#1318)
Browse files Browse the repository at this point in the history
* fix: Type 'DropdownButton' as 'button'

* chore: Update snapshots
  • Loading branch information
smockle authored Jun 23, 2021
1 parent 1d91d51 commit 06bdde9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/DropdownMenu/DropdownButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type DropdownButtonProps = ButtonProps

export const DropdownButton = React.forwardRef<HTMLElement, React.PropsWithChildren<DropdownButtonProps>>(
({children, ...props}: React.PropsWithChildren<DropdownButtonProps>, ref): JSX.Element => (
<Button ref={ref} {...props}>
<Button ref={ref} type="button" {...props}>
{children}
<StyledOcticon icon={TriangleDownIcon} ml={1} />
</Button>
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/__snapshots__/DropdownMenu.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ exports[`DropdownMenu renders consistently 1`] = `
onClick={[Function]}
onKeyDown={[Function]}
tabIndex={0}
type="button"
>
<svg
aria-hidden="true"
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/__snapshots__/SelectPanel.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ exports[`SelectPanel renders consistently 1`] = `
onClick={[Function]}
onKeyDown={[Function]}
tabIndex={0}
type="button"
>
Select Items
<svg
Expand Down

1 comment on commit 06bdde9

@vercel
Copy link

@vercel vercel bot commented on 06bdde9 Jun 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.