Skip to content

Commit

Permalink
[joy-ui][Accordion] Add type button to accordion summary (#39532)
Browse files Browse the repository at this point in the history
  • Loading branch information
KumarNitin19 authored Oct 26, 2023
1 parent 44705ce commit 0123bad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/data/joy/components/accordion/AccordionTransition.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default function AccordionTransition() {
}}`
: `"${transition}"`
}>`}
language="jsx"
/>
</BrandingProvider>
</Box>
Expand Down
1 change: 1 addition & 0 deletions packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ const AccordionSummary = React.forwardRef(function AccordionSummary(inProps, ref
'aria-expanded': expanded ? 'true' : 'false',
'aria-controls': `${accordionId}-details`,
disabled,
type: 'button',
onClick: handleClick,
},
ownerState,
Expand Down

0 comments on commit 0123bad

Please sign in to comment.