File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export type DropdownButtonProps = ButtonProps
77
88export 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 >
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments